Community discussions

MikroTik App
 
Levon99
just joined
Topic Author
Posts: 1
Joined: Wed Jan 17, 2024 7:17 pm

tool/fetch status code 204 throws error

Wed Jan 17, 2024 7:23 pm

Hello
I'm calling an api that returns 204 as success but this cause my script to throw an error
Here's a code that regenerate the issue, i don't think 2xx results should be implemented as error.
I was wondering if there is any way to fix it or to know what is the returned status code
:tool/fetch url="https://connectivitycheck.gstatic.com/generate_204"
Running on ROS 7.13
 
tangent
Forum Guru
Forum Guru
Posts: 1404
Joined: Thu Jul 01, 2021 3:15 pm
Contact:

Re: tool/fetch status code 204 throws error

Thu Jan 18, 2024 8:14 am

You should make a support request for this. This forum is a user-to-user channel, not user-to-MikroTik.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12014
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: tool/fetch status code 204 throws error  [SOLVED]

Thu Jan 18, 2024 10:49 am

You should make a support request for this. This forum is a user-to-user channel, not user-to-MikroTik.

Already know, the bug is introduced in v7.13 and on 7.14beta3 (2023-Dec-19 13:31) is already resolved.
*) fetch - treat any 2xx HTTP return code as success (introduced in v7.13)
viewtopic.php?t=202612#p1043318

Is also solved (but the enty is missing on the changelog) on 7.13.2 (2024-Jan-12 11:51)

Is not needed to do anything, except install 7.13.2.

Who is online

Users browsing this forum: No registered users and 1 guest