Skip to main content

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.

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

 


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