PUT request failing unexpectedly #805
andrewsinnovations
started this conversation in
General
Replies: 1 comment 2 replies
-
Hello and welcome to SQLPage ! Short answerYou http request definition is missing the mandatory set url = 'https://sqlpage.free.beeceptor.com';
set request = json_build_object(
'method', 'PUT',
'url', $url,
'headers', json_build_object(), -- The headers field is mandatory (but can be empty)
'body', ''
);
select sqlpage.fetch($request); ImprovementsI'll fix two things inside sqlpage itself:
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to send a PUT request to an external service. I have code like this:
I get the following error:
When I grab the URL value and run it through bruno to test, it succeeds. I'm not sure what I'm doing wrong in my fetch, it feels like it doesn't support PUT method? I hope that isn't the case as the REST API I need to interface with requires it.
Beta Was this translation helpful? Give feedback.
All reactions