200 API response, but data appearing under error rather than data

  • dfeinberg5-1315897924026372106

    Danny

    4 months ago

    Hi there! Hoping someone might be able to help me out. Running into a super weird issue where I have a Xano API endpoint that works fine and returns a 200 response along with some data, but that data is showing in Toddle under error rather than data.

    Has anyone seen this before or have any ideas? Everything in Xano looks normal.
  • dfeinberg5-1315921936425029663

    Danny

    4 months ago

    This appears to be a bug in Toddle. I recreated the exact same API in toddle and it works fine.
  • lucasg-1315923719977177152

    Lucas G

    4 months ago

    Do you still have the API with the bug?
  • If so, the toddle team should take a look at it
  • erikbeus-1315949070791213109

    Erik Beuschau

    4 months ago

    Hi Danny. I would like to investigate this.
    Could you send me a link to a branch where I can reproduce? Also, do you know if you happened to add an error formula for your API request?
  • lennartblmn-1330276793222959147

    lennartblmn

    3 months ago

    I'm experiencing the same thing rn
  • @Lucas G do you know anything about this?
  • lucasg-1330277966608859247

    Lucas G

    3 months ago

    Not seeing it in my project
  • Check that you don't have a formula setting the response as an error
  • lennartblmn-1330278257009885234

    lennartblmn

    3 months ago

    what would that look like?
  • lucasg-1330278311372525578

    Lucas G

    3 months ago

    In the 'Advanced' tab
  • 'Is error'
  • You can specify in there what should be considered an error. This is for APIs that just return data but don't flag it as an error for example
  • If that's null/nothing is set there, try creating a new API and seeing if that one works correctly
  • If it does, the team might wanna take a look to see what's going on behind the scenes
  • lennartblmn-1330279355196375081

    lennartblmn

    3 months ago

    i reset it to null now everything is working. thank you so much!
    👍1

Stop scrolling. Start building.

toddle is a visual web app builder that rivals custom code — but accessible to your entire team!

Try toddle — it's free!

© Copyright 2024 toddle. All rights reserved.