Simbol "?" in http request #143
-
std.http.get(envs.PRIMETIME_URL .. query)
:success(function()
print(std.http.body)
local response = std.json.decode(std.http.body)
if response and response[workspace] then
print('2xx callback')
data._listtransmission = response[workspace] I'm getting a 4xx 5xx error in my request because it's adding a "?" at the end of url as you can see here in the return |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
The problem is not using the query builder when building your query, I will work on omitting std.http.get(envs.PRIMETIME_URL)
:add_param('app', 'fellow')
:add_param('version', '0.6.0')
:success(function()
print(std.http.body)
local response = std.json.decode(std.http.body)
if response and response[workspace] then
print('2xx callback')
data._listtransmission = response[workspace]
end)
:run() |
Beta Was this translation helpful? Give feedback.
-
Dont have param() implamentation in native_http_handler (or a incorrect return). In ...
const params = new URLSearchParams(self.params_dict)
=> self.params_dict is undefined
... |
Beta Was this translation helpful? Give feedback.
The problem is not using the query builder when building your query, I will work on omitting
?
when there are no parameters, but the correct way to make a request is as follows: