Giter Club home page Giter Club logo

uncivserver.xyz's People

Contributors

dependabot[bot] avatar touhidurrr avatar

Stargazers

 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

uncivserver.xyz's Issues

/isalive endpoint should return valid JSON

The reference server of Unciv, UncivServer, is running at my localhost:8888 in this example.

$ curl "https://uncivserver.xyz/isalive"
true
$ curl "http://localhost:8888/isalive"
{authVersion: 0}

I would highly recommend to return some valid JSON at the /isalive endpoint of your unciv server implementation, even if it's telling you no supported features, like {authVersion: 0} as shown above. At the moment, the client just gives up on parsing the response and uses an empty ServerFeatureSet object, which is fundamentally the same behavior. But I think it would be much cleaner for other client implementations if the response could be parsed.

This would allow a client to "detect broken server implementations" and e.g. show some warning. At the moment, it's just ignored.

Return code 404 instead of 409 when file can not be found

Currently, Unciv checks for a 404 return code for custom server implementations.

But UncivServer.xyz returns 409 when a file can't be found. This prevents Unciv from showing a user-friendly message. It also prevents the Android turn check background worker to function correctly, because it also checks for if a file could not be found, and if so, just stops checking them. But if it receives a 409, it thinks that an actual problem has occured and stops everything.

It would be good if UncivServer.xyz could return the HTTP status code 404 when a file is not found.

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.