Closed alexisrc1 closed 1 week ago
Thanks for reporting ! This is a bug in SQLPage. I'm working on it. In the meantime, you should be able to get this working by doing this in two steps:
set http_request = json_build_object(
'method', 'POST',
'url', 'http://localhost:62802/post',
'body', json_build_object(
'personalizations', json_build_array(
json_build_object(
'to', json_build_array(
json_build_object('email', 'recipient@example.com')
)
)
),
'from', json_build_object('email', 'sender@example.com'),
'subject', 'Test Email',
'content', json_build_array(
json_build_object('type', 'text/plain', 'value', 'Hello, this is a test email.')
)
)
);
set email_send_result = sqlpage.fetch($http_request);
Introduction
I get this error
when callign the fetch function
To Reproduce
Version information