HTTP Request GHL (Highlevel) to create appointment

Im trying to create a calendar event (an appointment) in GHL based on the information from the caller. The webhook is passing the info to the GHL contact nodes and creates the contact (that works fine), but the next step is to setup a HTTP request in GHL to create the calendar event. Except I keep getting errors, last night it was the authorization the problem and this morning, it says that the url is invalid, but I am using the url provided by GHL api documentation ( https://services.leadconnectorhq.com/calendars/events/appointments).

Regarding the auth, I tried both the generic using basic auth the API key from the sub account (which works in make.com) and the predefined credential type. Both gave me the same error regarding authorization failing or invalid url.

Information on your n8n setup

  • n8n version: 1.64.0
  • **Database (default: SQLite):default
  • **n8n EXECUTIONS_PROCESS setting (default: own, main):main
  • **Running n8n via (Docker, npm, n8n cloud, desktop app):cloud
  • Operating system:

hello @tindeveloper

please, share the workflow and the error details

how do I share it with you?

The error is:

Invalid URL

Error code

ERR_INVALID_URL

Request

{ "body": { "calendarId": "bBmeTLuTInpLorw6GP2l", "locationId": "aTRc4AMaSDMqp8UOiY1C", "contactId": "H1d4Z3FqvDyaejjy3eCA", "startTime": "Next week, Wednesday at 2 PM+01:00" }, "headers": { "version": "2021-04-15", "authorization": "**hidden**", "accept": "application/json,text/html,application/xhtml+xml,application/xml,text/*;q=0.9, image/*;q=0.8, */*;q=0.7", "Authorization": "**hidden**" }, "method": "POST", "uri": "https://services.leadconnectorhq.com /calendars/events/appointments", "gzip": true, "rejectUnauthorized": true, "followRedirect": true, "resolveWithFullResponse": true, "followAllRedirects": true, "timeout": 300000, "encoding": null, "json": false, "useStream": true }

Item Index

0

Node type

n8n-nodes-base.httpRequest

Node version

4.2 (Latest)

n8n version

1.64.0 (Cloud)

Time

17/10/2024, 11:16:15

Stack trace

NodeApiError: Invalid URL at Object.requestWithAuthentication (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/NodeExecuteFunctions.js:1305:19) at Object.requestWithAuthentication (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/NodeExecuteFunctions.js:2095:20)

Ah, I see. You have a space after .com in the url
image

Thank you! It is working now

Hi again,

Yesterday it was working fine and earlier today also, I didn’t change anything and now, it the Highlevel node gives this error:

Problem in node ‘HighLevel‘

Your request is invalid or could not be processed by the service

any ideas?

Can you share more details? What is the input for the HTTP node?

Maybe the service itself was not working at that time

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.