Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

多账号报错 #58

Open
spriteQi opened this issue Dec 5, 2024 · 3 comments
Open

多账号报错 #58

spriteQi opened this issue Dec 5, 2024 · 3 comments

Comments

@spriteQi
Copy link

spriteQi commented Dec 5, 2024

试了单个账号可以但是多个就会报错,是按照a,b,c的格式填写key的。

##[debug]Evaluating: secrets.SKLAND_TOKEN
##[debug]Evaluating Index:
##[debug]..Evaluating secrets:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'SKLAND_TOKEN'
##[debug]=> ''
##[debug]Result: '
'
##[debug]Evaluating: secrets.SERVERCHAN_SENDKEY
##[debug]Evaluating Index:
##[debug]..Evaluating secrets:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'SERVERCHAN_SENDKEY'
##[debug]=> null
##[debug]Result: null
##[debug]Evaluating: secrets.BARK_URL
##[debug]Evaluating Index:
##[debug]..Evaluating secrets:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'BARK_URL'
##[debug]=> null
##[debug]Result: null
##[debug]Evaluating: secrets.SELECT_CHANNEL
##[debug]Evaluating Index:
##[debug]..Evaluating secrets:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'SELECT_CHANNEL'
##[debug]=> null
##[debug]Result: null
##[debug]Evaluating condition for step: 'Run daily attendance'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: Run daily attendance
##[debug]Loading inputs
##[debug]Loading env
Run pnpm attendance
##[debug]/usr/bin/bash -e /home/runner/work/_temp/c9d707c0-5935-4145-b682-897b9d11a6c6.sh

[email protected] attendance /home/runner/work/skland-daily-attendance-1/skland-daily-attendance-1
tsx main.ts

wasm://wasm/001c6ec6:1

RuntimeError: memory access out of bounds
at wasm://wasm/001c6ec6:wasm-function[413]:0x66028
at RsaPublic.getKeySize (/home/runner/work/skland-daily-attendance-1/skland-daily-attendance-1/node_modules/.pnpm/@originjs[email protected]/node_modules/@originjs/crypto-js-wasm/lib/index.js:6247:24)
at RSAAlgo.getKeySize (/home/runner/work/skland-daily-attendance-1/skland-daily-attendance-1/node_modules/.pnpm/@originjs[email protected]/node_modules/@originjs/crypto-js-wasm/lib/index.js:6920:29)
at RSAAlgo.errorIfExceedSizeLimit (/home/runner/work/skland-daily-attendance-1/skland-daily-attendance-1/node_modules/.pnpm/@originjs[email protected]/node_modules/@originjs/crypto-js-wasm/lib/index.js:6970:28)
at RSAAlgo.encrypt (/home/runner/work/skland-daily-attendance-1/skland-daily-attendance-1/node_modules/.pnpm/@originjs[email protected]/node_modules/@originjs/crypto-js-wasm/lib/index.js:6776:12)
at Object.encrypt (/home/runner/work/skland-daily-attendance-1/skland-daily-attendance-1/node_modules/.pnpm/@originjs[email protected]/node_modules/@originjs/crypto-js-wasm/lib/index.js:7077:23)
at encryptRSA (/home/runner/work/skland-daily-attendance-1/skland-daily-attendance-1/src/crypto.ts:104:35)
at getDid (/home/runner/work/skland-daily-attendance-1/skland-daily-attendance-1/src/utils.ts:143:14)
at signIn (/home/runner/work/skland-daily-attendance-1/skland-daily-attendance-1/src/api/skland.ts:27:16)
at doAttendanceForAccount (/home/runner/work/skland-daily-attendance-1/skland-daily-attendance-1/src/index.ts:16:38)

Node.js v18.18.2
 ELIFECYCLE  Command failed with exit code 1.
Error: 进程已结束,退出代码为 1.
##[debug]Finishing: Run daily attendance

@winerchan
Copy link

同样出现了该问题,目前正通过临时更改运行版本到41d9dd28ff512067bc2cb2bf76b589f719aa0698提交以规避

@univerioiln233
Copy link

univerioiln233 commented Dec 7, 2024

同样出现了该问题,目前正通过临时更改运行版本到41d9dd28ff512067bc2cb2bf76b589f719aa0698提交以规避

我这边换版本不行,使用非无痕模式重新获取了token才行。如果两个号,其中一个token过期了会发生什么。。

@enpitsuLin
Copy link
Owner

看起来可能是用的 wasm 在跑多个账户会有点问题,上面的 workaround 应该可以解决,后面把这个 wasm 的去掉好了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants