arcaea-infinity / botarcapis-memories Goto Github PK
View Code? Open in Web Editor NEWA fast and easy Arcaea API for your bot.
License: MIT License
A fast and easy Arcaea API for your bot.
License: MIT License
在更新至 v4 后出现了此报错,看起来不影响正常使用。
触发方式:访问 404 endpoint
已尝试将 node_modules 删掉重新执行 npm i,还是会出现这个错误。
完整报错
[2021-04-29 20:51:40.341] I source/__loader__.ts Accept Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0 request => GET / {}
[2021-04-29 20:51:40.344] E source/__loader__.ts Error: Cannot find module './publicapi//'
Require stack:
- /root/service/BotArcAPI/build/source/__loader__.js
- /root/service/BotArcAPI/build/source/index.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:925:15)
at Function.Module._load (node:internal/modules/cjs/loader:769:27)
at Module.require (node:internal/modules/cjs/loader:997:19)
at require (node:internal/modules/cjs/helpers:92:18)
at /root/service/BotArcAPI/build/source/__loader__.js:87:74
at processTicksAndRejections (node:internal/process/task_queues:93:5)
[2021-04-29 20:51:40.348] V source/__loader__.ts Send response back
我周围的朋友好像比起 时停
,更喜欢使用 黑皇帝
这个别名
所以我想请问能否将 黑皇帝
加入 chronostasis 的 alias
Hello, I just found this project and I met the following error:
{
status: -2,
message: "allocate an arc account failed"
}
After reading the code I guess that I may need to add a new arcaea account to arcaccount.db. However I didn't find any related API in v1 or v2, and I don't know what are the meanings of device
, ucode
and token
in the arcaccount.account
table.
Can someone explains that how to add a new arcaea account to the database, or is there any other way to solve the "sllocate an arc account failed" error?
This is log in output ,it said could not to login , what should I do?
[2020-11-05 21:34:17] V corefunc/arcfetch.ts Arcfetch => https://arcapi.lowiro.com/coffee/12/auth/login
[2020-11-05 21:34:18] E corefunc/arcfetch.ts Arcapi returns an error => 103
[2020-11-05 21:34:18] E corefunc/arcfetch.ts {"success":false,"error_code":103}
[2020-11-05 21:34:18] W corefunc/arcfetch.ts Failed... retrying 1/3
[2020-11-05 21:34:18] W corefunc/arcfetch.ts Retry canceled => errcode 103
[2020-11-05 21:34:18] E account/alloc.ts
[2020-11-05 21:34:18] V corefunc/arcfetch.ts Arcfetch => https://arcapi.lowiro.com/coffee/12/user/me
[2020-11-05 21:34:19] E corefunc/arcfetch.ts Arcapi returns an error => 203
[2020-11-05 21:34:19] E corefunc/arcfetch.ts {"success":false,"error_code":203}
[2020-11-05 21:34:19] W corefunc/arcfetch.ts Failed... retrying 1/3
[2020-11-05 21:34:19] W corefunc/arcfetch.ts Retry canceled => errcode 203
[2020-11-05 21:34:19] F unhandledRejection => unknown
I successfully setup the project, and have inserted a userbot record into savedata/arcaccount.db
.
Then when I try to GET http://myhost/v2/userbest30?usercode=463425308
, I failed.
Here is the key track
[2021-01-10 01:06:59] I source/__loader__.ts Accept Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:85.0) Gecko/20100101 Firefox/85.0 request => GET /v2/use
rbest30 {"usercode":"463425308"}
[2021-01-10 01:06:59] V corefunc/arcfetch.ts Arcfetch => https://arcapi.lowiro.com/latte/13/auth/login
[2021-01-10 01:07:06] V corefunc/arcfetch.ts Arcfetch => https://arcapi.lowiro.com/latte/13/user/me
[2021-01-10 01:07:07] V database.arcaccount.update.ts UPDATE `accounts` SET passwd = ?, device = ?, uid = ?, ucode = ?, token = ?, banned = ? WHERE `name`
== ?
[2021-01-10 01:07:07] I account/alloc.ts Allocated account => iyumebot1 9dLYP3rn4eg9JrhSZmkmkreoKT0o/Xyhtzz9afuwMtM=
[2021-01-10 01:07:07] V corefunc/arcfetch.ts Arcfetch => https://arcapi.lowiro.com/latte/13/user/me
[2021-01-10 01:07:10] V corefunc/arcfetch.ts Arcfetch => https://arcapi.lowiro.com/latte/13/friend/me/delete
[2021-01-10 01:07:14] V corefunc/arcfetch.ts Arcfetch => https://arcapi.lowiro.com/latte/13/friend/me/add
[2021-01-10 01:07:21] V database.arcbest30.byuid.ts SELECT * FROM `cache` WHERE `uid` == ?
[2021-01-10 01:07:21] V database.arcsong.allcharts.ts SELECT * FROM `charts` ORDER BY `rating` DESC
[2021-01-10 01:07:21] E v2/userbest30.ts TypeError: Cannot read property 'sid' of undefined
at /root/service/BotArcAPI/build/source/publicapi/v2/userbest30.js:132:73
at Generator.next (<anonymous>)
at fulfilled (/root/service/BotArcAPI/build/source/publicapi/v2/userbest30.js:5:58)
[2021-01-10 01:07:21] I account/recycle.ts Recycled account => iyumebot1 9dLYP3rn4eg9JrhSZmkmkreoKT0o/Xyhtzz9afuwMtM=
[2021-01-10 01:07:21] V source/__loader__.ts Send response back
I am able to GET http://myhost/v2/userinfo?usercode=463425308
, which returns with a code 0 and correct format.
Cause the latest release has been encrypted from the official,
We need several times to process it.
BTW, There's a terrible message.
Everything changed. :(
I'm trying to use api "v2/userinfo" but it throws error. {"status":-2,"message":"allocate an arc account failed"}
what is the problem?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.