We’re currently experiencing a high volume of support requests, which may result in longer response times — thank you for your patience and understanding.
Community FAQ
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
rhadall
Engaged Sweeper II

Hi

Trying to connect to an external application through the HTTP POST request using OAuth2.0 client credentials and keep getting the following error:
Cannot read properties of undefined (reading 'access_token')
I've tested the credentials using Postman and that is returning a token.
I think I'm missing something obvious. Any ideas?

Thanks

4 REPLIES 4
Vicente_SC
Moderator
Moderator

Thanks for the extra detail. The token response structure looks standard, so a few things to check:

  1. Response Content-Type: Could you share the full response headers from Postman? Some APIs return text/plain instead of application/json, which can cause parsing issues on our side.

  2. Empty body: Some APIs return 200 OK with an empty or malformed body. Please confirm the body is consistently returned and valid JSON.

  3. External API: Which API are you trying to connect to? If there are public docs, we can review how the token endpoint is expected to behave.

If there is information you don’t want to share publicly here, feel free to email me directly at vicente.soriano@lansweeper.com , and we can take it from there.

rhadall
Engaged Sweeper II

Have sent you an email with additional info. Thanks

Vicente_SC
Moderator
Moderator

Hi @rhadall. What does the actual token response body look like from Postman? Can you share the raw JSON response? The request might be structured/wrapped differently there. 

Can you also share how the HTTP request is configured in Flow builder? It would also be great to see the full request/error response if you can provide it. It seems like a difference in structure is the most likely culprit.

rhadall
Engaged Sweeper II

Hi. Attached screenshots of the JSON response and the client connection settings in the HTTP request. Redacted some details for security.

Forum

New to Lansweeper?

Try Lansweeper For Free

Experience Lansweeper with your own data.
Sign up now for a 14-day free trial.

Try Now