API response disappears after 0.1 sec..

  • uunicode-1326966879885197374

    unicodes

    4 months ago

    I'm getting the response for 0.1 seconds then disappears.
    Why the response disappears? It does it on PATCH.
    1326966880451428495-Screenshot_2025-01-09_at_19.30.20.png
  • leerussel-1327567880455454803

    Lee Russel

    4 months ago

    @unicodes What is the settings of your API? Is auto fetch on?
  • leerussel-1327568761879793704

    Lee Russel

    4 months ago

    Can you also screenshot what the input value to your api looks like from the perspective of your backend
  • andreasmoller-1327591552779943987

    Andreas Møller

    4 months ago

    Any chance that the API is depending on some data that is updated when the request is done?
  • uunicode-1327596360530137099

    unicodes

    4 months ago

    Hi @Lee Russel , the API is the default one, there are no extra settings. There are no input values, just the id of the object updated and the id exist as the update is performing but no response in the API.
    1327596360299577355-Screenshot_2025-01-11_at_13.13.01.png
  • @Andreas Møller There are no dependencies from other APIs, it is just a PATCH with id and simple body to a variable.
  • 1327596696691015751-Screenshot_2025-01-11_at_13.15.11.png
  • 1327596821761232977-Screenshot_2025-01-11_at_13.15.42.png
  • 1327596884604223542-Screenshot_2025-01-11_at_13.15.58.png
  • andreasmoller-1327604639486443603

    Andreas Møller

    4 months ago

    Ah I think I know what is happening. When the api is checked it see if it should update it sees that the body is different since the timestamp has changed
  • uunicode-1327607849429368863

    unicodes

    4 months ago

    Do you know please If I can do something to fix this or is from toddle team to be fixed?
  • andreasmoller-1327608896218595349

    Andreas Møller

    4 months ago

    Unfortunately this might take some time for us to fix, so I would recommend not using autofetch for now
  • uunicode-1327609570020954175

    unicodes

    4 months ago

    It is a PATCH, i'm calling it just on button click not auto fetch. Do you want me to open a bug on this or will you communicate with the team?
  • 1327609761323024515-Screenshot_2025-01-11_at_14.07.08.png
  • andreasmoller-1327617996142805042

    Andreas Møller

    4 months ago

    Yes please do.
  • lucasg-1327675182797819914

    Lucas G

    4 months ago

    Yeah this happens when using formulas that constantly update like that directly in the body as Andreas said.
    @Andreas Møller once I left auto-fetch on and sent like 5k+ requests before I unchecked auto-fetch 😬
    🙏1
  • Good times
  • I didn't really think of it as a bug though
    ❤️1
  • uunicode-1327679582530441258

    unicodes

    4 months ago

    Thank you Lucas! I'm not using auto-fetch, I do not know why is happening this issue without auto-fetch.
  • lucasg-1327679656890994720

    Lucas G

    4 months ago

    Because of your now node
    😅1
  • It might be a bug or not depending on how you look at it
  • uunicode-1327679892262883411

    unicodes

    4 months ago

    I have to check this without now 😅
  • lucasg-1327679992603086949

    Lucas G

    4 months ago

    If you set the payload to a variable it should go through (even with the now)
  • It's what Andreas said, it's because the body is changing
  • Definitely do not leave auto-fetch on or you'll stress test whatever is receiving this call lol
  • uunicode-1327680599271411757

    unicodes

    4 months ago

    I do not know if it was fixed, but with now and without now works. ❤️
  • No, it don't
  • uunicode-1327680966713675856

    unicodes

    4 months ago

    You are right Lucas, without now works fine
  • Thank you! It is a solution in case the toddle team would consider to fix or not depending of how they consider this (a bug or not).
  • But I'm happy to find the issue! Thank you!
  • andreasmoller-1327681272298078300

    Andreas Møller

    4 months ago

    It sounds like it is. We will look into it on Monday
    🙏1
  • uunicode-1327681950667771945

    unicodes

    4 months ago

    Thank you Andreas and Lucas for your support!
  • lucasg-1327692666112053329

    Lucas G

    4 months ago

    On a side note. In supabase you can set up a function that automatically updates the “updated” column any time it is changed
    🥰1
  • There is a quick plugin/function for it
  • Or you can set it up in sql editor
  • uunicode-1327921043733479424

    unicodes

    4 months ago

    Wow, great ideea! Thank you!