-
Notifications
You must be signed in to change notification settings - Fork 8
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
ClientResponseError: 400, message='Bad Request' when querying census API #64
Comments
I can reproduce the problem with the README example: import asyncio
import auraxium
from auraxium import ps2
async def main():
async with auraxium.Client() as client:
char = await client.get_by_name(ps2.Character, 'auroram')
print(char.name)
print(char.data.prestige_level)
asyncio.run(main()) Gives:
Fixed by casting the url as explained above. |
Hi, thank you for the report. I have been observing similar issues in the CI runs for https://github.com/leonhard-s/ps2-api-backup but was unable to reproduce it locally. I will do some digging to see what caused this; there have been no changes to Auraxium lately. Either a new version of yarl changed a behaviour, or it was an API change. |
The error appears to have been an upstream issue related to a regression in I do not immediately see a connection to the only regression they mention in the release notes (aio-libs/yarl#854), but I have not had time to investigate it in detail. Especially the explicit cast to @yakMM please let me know if the issue is fixed for you after updating to |
The issue is indeed resolved with Didn't really look in details, plus I don't really know about yarl, but the issue you are linking resembles very much the weird behavior I was experimenting. This comment for example matches: aio-libs/yarl#854 (comment) |
Hello, I'm recently getting an error when querying the census API with auraxium.
I don't know if the problem is coming from an API change on Daybreak side or a recent change in the auraxium module.
The problem is fixed if I cast the url to str (using
str(url)
instead ofurl
) here:auraxium/auraxium/_rest.py
Line 484 in 8fd4fa9
Does the problem come from using yarl.URL object directly?
The text was updated successfully, but these errors were encountered: