Replies: 2 comments 1 reply
-
Here is a complete Ruuter DSL
Here is a sample index.html that will call this endpoint and count failed requests
As long as Ruuter is set up to accept CORS from http://localhost:3000, you can serve this index.html with After keeping the tab open for a little while, this is the result: |
Beta Was this translation helpful? Give feedback.
-
Explained this somewhere in chat but will explain here as well. In my opinion this goes against the usual logic of how Ruuter conf's are written. This type of request with a url parameter, should pass a variable to resql. In that case the heavy lifting would be done in sql. Another way would be to make each of these requests a separate Ruuter conf. Essentially this does not seem a likely scenario to happen and not something that should be encouraged. Additionally there was previously a bug with the switch step, where a request could not go into the "else" condition, which was fixed here #122. So if we insist this is an issue, this should be checked again with this fix. |
Beta Was this translation helpful? Give feedback.
-
Given an endpoint that fetches different data from Resql based on the provided parameters:
If this endpoint is called once with any valid parameter it will return the correct result.
However if many or all of these options are called in parallel requests then sometimes the results get mixed up and for example I can receive the result of
avg_waiting_time_day
when the request was with the parametertotal_chats_day
I also tried to replace the individual steps so that instead of an asynchronous http.post step each step would only return a unique value like :
This seems to happen less frequently like this, but I still observe the same thing happening:
When its OK:
When its not OK:
Beta Was this translation helpful? Give feedback.
All reactions