GithubHelp home page GithubHelp logo

Comments (4)

yakMM avatar yakMM commented on July 24, 2024 1

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.

yakMM avatar yakMM commented on July 24, 2024 1

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.

leonhard-s avatar leonhard-s commented on July 24, 2024

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.

leonhard-s avatar leonhard-s commented on July 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.