Comments (4)
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:
auraxium.errors.ResponseError: An HTTP exception occurred
Fixed by casting the url as explained above.
from auraxium.
The issue is indeed resolved with yarl
1.9.2, thanks.
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)
from auraxium.
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.
from auraxium.
The error appears to have been an upstream issue related to a regression in yarl==1.9.1
or one of its dependencies. Version 1.9.2 of yarl
no longer breaks requests.
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 str
fixing the issue is quite interesting.
@yakMM please let me know if the issue is fixed for you after updating to yarl
1.9.2.
from auraxium.
Related Issues (20)
- Note GainExperience quirks in documentation HOT 1
- Faction image_path missing HOT 1
- outfit.leader() -> Character or OutfitMember HOT 2
- ('experience_bonus',), 'msg': 'value is not a valid integer', 'type': 'type_error.integer'}])> HOT 2
- Improve error message when pydantic validation fails
- RTD broken link HOT 1
- Allow unsecured connections for expired API certs HOT 3
- WebSocket version migration HOT 1
- Support third-party fallback endpoints HOT 1
- Uncaught exception on await Character.items(): KeyError HOT 5
- README example is raising RuntimeError HOT 2
- Client.get_by_name not using name.first_lower HOT 3
- Ignoring Unsupported Payload (Continent Lock) HOT 1
- Move payload validation to OpenAPI spec
- events.ContinentUnlock no longer exists HOT 1
- Unable to add World to Trigger filter HOT 4
- Support side-loading object model payload definitions
- Replace dict-helpers and proxy system with `.query()` factories
- Drop backoff dependency
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from auraxium.