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

upload the file 403 in v3 #451

Open
z2labplus opened this issue Nov 27, 2024 · 3 comments
Open

upload the file 403 in v3 #451

z2labplus opened this issue Nov 27, 2024 · 3 comments

Comments

@z2labplus
Copy link

I modify the v3's neko/server/dev/start
1732683728955
and then I upload the file
1732683766986
it raise the error
2024-11-27 05:03:53,203 DEBG 'neko' stdout output:
5:03AM WRN request failed (401): Unauthorized error="member does not exist" module=http req={"agent":"Go-http-client/1.1","id":"ac9b7bea8bf8/7YFYHftBfH-000207","method":"POST","proto":"HTTP/1.1","remote":"127.0.0.1:52532","scheme":"http","uri":"http://127.0.0.1:8080/api/login"} res={"bytes":38,"elapsed":0.053815,"status":401,"time":"Wed, 27 Nov 2024 05:03:53 UTC"}

2024-11-27 05:03:53,204 DEBG 'neko' stdout output:
5:03AM WRN request failed (403): error response from backend: Unauthorized module=http req={"agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36","id":"ac9b7bea8bf8/7YFYHftBfH-000206","method":"POST","proto":"HTTP/1.1","remote":"74.48.86.124:38930","scheme":"http","uri":"http://74.48.86.124:3000/file?pwd=password2"} res={"bytes":67,"elapsed":0.502868,"status":403,"time":"Wed, 27 Nov 2024 05:03:53 UTC"}

how to solve it?

@z2labplus
Copy link
Author

Does this mean that I need to redo this code myself?

@m1k1o
Copy link
Owner

m1k1o commented Nov 30, 2024

Since you use a different authentication not the legacy you just need to add proper Authorization header instead of ?pwd. So it should not be a big change.

@z2labplus
Copy link
Author

So I just need to use the
NEKO_SESSION_API_TOKEN=yourApiTokenCanBeAnything to authorization
to post the file?

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

2 participants