Skip to main content
Question

Google Calendar API Request (Beta) "Invalid URL" error

  • 7 June 2024
  • 2 replies
  • 11 views

Google Calendar API not working properly

 

The dynamic fields do not seem to be recognized properly

 

Or am i doing something wrong?

 

 

This is the error i get

 

 

The error "Invalid URL" typically occurs when the URL constructed for the API request is malformed or contains incorrect placeholders. In your case, the URL in the input data is https://www.googleapis.com/calendar/v3/calendars/{{243468449__id}}/events/{{243468449__etag}}. It seems that the placeholders {{243468449__id}} and {{243468449__etag}} are not being replaced correctly, possibly because they do not match the output data from the previous step.

To resolve this issue, you should correct the placeholders in the URL to match the keys from the output data of the previous step. Based on the output data provided, replace {{243468449__id}} with {{id}} and {{243468449__etag}} with {{etag}}. The corrected URL should look like this: https://www.googleapis.com/calendar/v3/calendars/{{id}}/events/{{etag}}. Make sure to update these placeholders in the Zap setup where you configure the URL for the Google Calendar API request. This should resolve the "Invalid URL" error by ensuring the URL is correctly formed with the appropriate dynamic data from the previous step.

2 replies

Userlevel 7
Badge +14

Hi @guglielmo 

Remove this Header by clicking the [X] button as the it is already handled per the notice.

 

The value is enclosed in double quotes, which probably need to be removed.

Zap action: Formatter > Text > Replace

 

Userlevel 7
Badge +11

Hey there @guglielmo! 👋

Were you able to get that API Request to Google Calendar working correctly after implementing the changes Troy suggested? 

Happy to help if you’re running into any further trouble on this at all - just let us know! 🙂

Reply