Product: MikroTik Knot
RouterOS: 6.48.3
Hello everybody,
I have a strange problem using fetch in a script and want to ask you for your help!
I'm working on something similar to this tutorial by MikroTik: https://help.mikrotik.com/docs/pages/vi ... ptscenario
I want to post the resulting data to an Azure Function for further processing.
And there is the problem: the post using fetch results in a bad request.
And I have no ideo why.
To make sure there isn't a problem with my Azure Function I tried posting some dummy data via Postman, Curl and PowerShell - without any issues.
Also, there is no problem when I use another service like https://webhook.site/ (instead of my Azure Function) to post the data to via fetch from script or terminal.
So, I guess, there might be some problem with the URI pointing to my Azure Function!?
The URI looks like this: https://function-name.azurewebsites.net ... Name?code=********************************************************
I know I have to escape the '?' character but it doesn't change the result.
As far as I can tell, the Azure Function itself doesn't even get called (at least there are no logs that would indicate someone tried to call the function).
Can anyone help me with this problem?