Giter Site home page Giter Site logo

xivapi-py's People

Contributors

codacy-badger avatar computergeek125 avatar curtiscook avatar packetdancer avatar realfriesi avatar yandawl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

xivapi-py's Issues

Private key shown in loggings

Hello!

Well, I know there is clearly ways to work around this, but it's not really safe in my opinion to print out the private key in the logs.

I know. I can change the logging level to something higher than info for the module, but I just don't think, in any cases, the key should be printed in any type of loggings (maybe debug)

Talking about debug. I don't think a query should be logged at the "info" level but the "debug"
INFO:pyxivapi.client:200 from https://xivapi.com/search?language=en&private_key=

loop is not defined

I could not figure out how to run the example file.

Error: name 'loop' is not defined

I fixed this issue by adding:
loop = asyncio.get_event_loop()

Character Bio Not Updating

Heya, I'm not sure if this issue has been created posted (and solved) already, but I've tried multiple times to get the character bio section from the lodestone to update through your API calls (both REST/GET requests as well as the python library itself) but no matter what the data stays stale. IDK if there's some sort of caching or timeout going on where updates only occur at certain intervals, but your documentation suggests "real-time" which is why I'm a bit confused. I hope this is just something I've overlooked in the docs and not a huge technical issue for you guys.

XIVAPIClient.index_search() raises XIVAPIError with any wildcard query

Don't know if this repo is maintained anymore but thought I'd mention an error I ran into!

Passing any query to XIVAPIClient.index_search() with string_algo="wildcard" raises an XIVAPIError exception.

This occurs because the "wildcard" query type does not support the "query" parameter, as explained by the response.

{'Error': True, 
'Subject':` 'XIVAPI ERROR', 
'Note': 'Get on discord: https://discord.gg/MFFVHWC', 
'Message': 'Search Error: {
    "error":{
        "root_cause":[{
            "type":"parsing_exception",
            "reason":"[wildcard] query does not support [query]","line":1,"col":69
        }],
        "type":"parsing_exception",
        "reason":"[wildcard] query does not support [query]",
        "line":1,"col":69
    },
"status":400
}', 
'Hash': '61969353bd46e810ce74ee1177e0d79b0c1bf5f2', 
'Ex': 'App\\Common\\Exceptions\\SearchException', 
'ExCode': 500, 
'Url': '', 
'Debug': {
    'ID': 'Yn60aZfP21081602', 
    'File': '#55 xivapi.com/src/Controller/SearchController.php', 
    'Method': 'POST', 
    'Path': '/search', 
    'Action': 'App\\Controller\\SearchController::search', 
    'Code': 500, 
    'Date': '2021-08-16 14:10:10', 
    'Env': 'prod'
}
}`

This can be fixed by ensuring "wildcard" queries are constructed with the correct parameters like the following:

'wildcard': {
                NameCombined_en: {
                "value": name,
                "boost": 1.0,
                "rewrite": "constant_score"
                }
            }

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.