GithubHelp home page GithubHelp logo

🐛 Bug Report: Rest API request to List Documents returns 400 (Bad Request) if X-Appwrite-Response-Format is not set about appwrite HOT 4 OPEN

feschaffa avatar feschaffa commented on June 9, 2024
🐛 Bug Report: Rest API request to List Documents returns 400 (Bad Request) if X-Appwrite-Response-Format is not set

from appwrite.

Comments (4)

stnguyen90 avatar stnguyen90 commented on June 9, 2024

@feschaffa, thanks for creating this issue! 🙏🏼 I tried to reproduce your error, but it worked fine for me:

image

Would you please share the request you made? Perhaps you passed a query in the 1.4 format which is why it returned 400.

from appwrite.

feschaffa avatar feschaffa commented on June 9, 2024

Sure! Here you go:

Error400

I didn't know the query format changed 🤔

Thank you!

from appwrite.

stnguyen90 avatar stnguyen90 commented on June 9, 2024

@feschaffa, yes, it's actually JSON now to support nesting and make parsing easier. We still need to update the REST API docs (cc @gewenyu99). However, if you add the response format header and set it to 1.4.0, your old queries should still work. That's why the response format header is important.

Maybe this will give you an idea what the new format is.

from appwrite.

feschaffa avatar feschaffa commented on June 9, 2024

Ooh, I see, great!

I'll use the response format header for now and wait until the docs are up-to-date then.

Thank you for your time looking into this, @stnguyen90 !

from appwrite.

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.