This topic was automatically generated from Slack. You can find the original thread here.
No matter how I revise the node.js, I keep getting the same error. I am at a road block with this. keeps giving me the same response over and over however, ChatGPT suggests the following: “The error you are experiencing might be related to the version of Axios you are using. According to a discussion on GitHub, the issue you’re encountering seems to have been reported with axios@0.21.4, and it appears to be resolved in v0.22.0 or higher versions1. Please try upgrading Axios to the latest version and see if the problem persists. If you’re using npm, you can upgrade Axios by running” @UMT4G7E5P any thoughts?
Error - Request failed with status code 400
{“statusCode”:400,“message”:“Unexpected token " in JSON at position 0”,“error”:“Bad Request”}
DETAILS
at null.createError (/tmp/__pdg__/dist/code/3cd7d6d2de872d25a780682b808d756a6dbc95552bf467b1abba5672e9b54e8d/node_modules/.pnpm/axios@0.21.4/node_modules/axios/lib/core/createError.js:16:15)
at null.settle (/tmp/__pdg__/dist/code/3cd7d6d2de872d25a780682b808d756a6dbc95552bf467b1abba5672e9b54e8d/node_modules/.pnpm/axios@0.21.4/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd (/tmp/__pdg__/dist/code/3cd7d6d2de872d25a780682b808d756a6dbc95552bf467b1abba5672e9b54e8d/node_modules/.pnpm/axios@0.21.4/node_modules/axios/lib/adapters/http.js:269:11)
at IncomingMessage.emit (events.js:412:35)
at null.endReadableNT (internal/streams/readable.js:1333:12)
at process.processTicksAndRejections (internal/process/task_queues.js:82:21)
steps.gohighlevel_1{1}
debug{5}
status:
400
statusText:
Bad Request
headers{10}
x-powered-by:
Express
access-control-allow-origin:
**
content-type:
application/json; charset=utf-8
content-length:
94
etag:
W/"5e-ZkBjh4z5cM88ZRQ74a5hde5GNS8"
vary:
Accept-Encoding
date:
Fri, 26 May 2023 21:11:07 GMT
via:
1.1 google
alt-svc:
h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
connection:
close
config{12}
url
https://services.leadconnectorhq.com/locations/ck6TDBskjrhSPWEO92xX/customFields/
method:
put
data"Hello James, welcome to the LeadForge OS
demo! I’m excited to show you how we can help Miami Yachts convert marketing leads into sales-ready leads with our powerful AI-driven system.\n\nJust provide me with the Marketing Qualified Lead (MQL) details, including their name, problem/goal they want to achieve, any specific details around their problem/goal, and how soon they want to achieve their goal or resolve their problem.\n\nOnce you share the MQL details, I’ll start the demonstration, engaging with you as if you were the lead. When we’re done with the demo, you can run a valuable
LeadSmith Lead Report by typing /lead report to get insights on lead performance and the conversion process."headers{6}
Accept:
application/json, text/plain, **/*
Content-Type:
application/json
Authorization:
Bearer a245d8cdb0e965eb82db143ac10ae22187dcc4ed
Version:
2021-07-28
User-Agent:
axios/0.21.4
Content-Length:
719
transformRequest[1]
0:
null
transformResponse[1]
0:
null
timeout:
0
xsrfCookieName:
XSRF-TOKEN
xsrfHeaderName:
X-XSRF-TOKEN
maxContentLength:
-1
-more-
data{3}
statusCode:
400
message:
Unexpected token " in JSON at position 0
error:
Bad Request