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

Error Response - 401 [Unauthorized] #24

Open
alexparker0 opened this issue Apr 18, 2024 · 9 comments
Open

Error Response - 401 [Unauthorized] #24

alexparker0 opened this issue Apr 18, 2024 · 9 comments

Comments

@alexparker0
Copy link

{"detail": "Unauthorized"} Error response <Response [401]> {"detail": "Unauthorized"} Error response <Response [401]> Ignoring exception in command generate: Traceback (most recent call last): File "/home/container/main.py", line 53, in generate sg1.save_songs(prompt, "./output", make_instrumental=instrumental, is_custom=False) File "/home/container/.local/lib/python3.12/site-packages/suno/suno.py", line 287, in save_songs self.get_songs( File "/home/container/.local/lib/python3.12/site-packages/suno/suno.py", line 228, in get_songs raise Exception(f"Error response {str(response)}") Exception: Error response <Response [401]> During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/container/.local/lib/python3.12/site-packages/discord/commands/core.py", line 131, in wrapped ret = await coro(arg) ^^^^^^^^^^^^^^^ File "/home/container/.local/lib/python3.12/site-packages/discord/commands/core.py", line 1013, in _invoke await self.callback(ctx, **kwargs) File "/home/container/main.py", line 55, in generate sg2.save_songs(prompt, "./output", make_instrumental=instrumental, is_custom=False) File "/home/container/.local/lib/python3.12/site-packages/suno/suno.py", line 287, in save_songs self.get_songs( File "/home/container/.local/lib/python3.12/site-packages/suno/suno.py", line 228, in get_songs raise Exception(f"Error response {str(response)}") Exception: Error response <Response [401]>

The code was working till last week, but it stopped working when I tried it a couple days ago, and I got the same error when I tried it again today. Any help would be appreciated! I have rechecked that the cookie is correct and updated it again, and I'm not getting an error for that as I got before I updated it, so I know that's not the problem, so I can't figure out what it is

@yihong0618
Copy link
Owner

just make a new cookie
the cookie expire in one week

@alexparker0
Copy link
Author

I updated the cookie and it worked for one song but it went back to the same error

@yihong0618
Copy link
Owner

pip install -U suno_songs and try again

@alexparker0
Copy link
Author

I reinstalled it but it's the same thing, it gives one generation, but after that, when I try to run it again, it gives the same 401 error

@yihong0618
Copy link
Owner

your terminal can connect google?

curl google.com

@alexparker0
Copy link
Author

Yep, I'm pretty sure, since it works very rarely for one song, but then just keeps giving error 401 whenever I send a request

@yihong0618
Copy link
Owner

Yep, I'm pretty sure, since it works very rarely for one song, but then just keeps giving error 401 whenever I send a request

you need another net...

@OlegRuban-ai
Copy link

I used IPs from different countries, took cookies from different browsers, but still had the same problem. And until May 4, everything worked fine.

@alexparker0
Copy link
Author

It's still not working for me as well, I tried all of the solutions and I know the problem isn't my net

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

3 participants