Skip to content

Issue when using the sqlpage.fetch function #701

@alexisrc1

Description

@alexisrc1

Introduction

I get this error
image

when callign the fetch function

To Reproduce

set email_send_result = sqlpage.fetch(
  'https://api.sendgrid.com/v3/mail/send',
  'POST',
 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.')
  )
)
)

Version information

  • OS: Windows
  • Database Postgres
  • SQLPage Version : v0.28

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions