Re: REST API Error: read ECONNRESET

Gianantonio_Cat
Level 1

REST API Error: read ECONNRESET

When trying to call the REST API associated to our subscription, we get the http error :

Error: read ECONNRESET

Everything seems configured correctly from the admin console.

The API only user is configured and has a role assigned and  no ip restrictions are present ...

Either the Identity endpoint and the API endpoint give the same result .

It's urgent for us to start accessing the rest API, can you please help ?

Regards,

Gianantonio Cattozzo .

4 REPLIES 4
SanfordWhiteman
Level 10 - Community Moderator

Re: REST API Error: read ECONNRESET

I'm feeling like this is something happening on your local network or HTTP client config, not the server.

What's your endpoint (there's no harm in posting it here as long as you don't provide credentials).

Tony_Mayse
Level 3

Re: REST API Error: read ECONNRESET

I agree with Sanford Whiteman‌ in that it's most likely a local problem. That error and come from anywhere along the connectivity path, but the cause is most likely local. It could be configuration problem with your HTTP client, a proxy server, proxy config, or even faulty equipment like a switch or router.

You should test making other connections using the same method. You could try retrieving the WSDL for Marketo's ancient SOAP API as a test: https://developers.marketo.com/soap-api/ You could also copy your API access token from the Launchpoint service in your Marketo Engage UI and use it to access /rest/v1/leads/describe2.json with a simple get request. Add the token as a query parameter like this: /rest/v1/leads/describe2.json?access_token=XY123 and test from a browser on the same machine which could rule out factors from your development environment. That should help narrow down the problem significantly.

Gianantonio_Cat
Level 1

Re: REST API Error: read ECONNRESET

OK,

thank you for the answers.

We had a connection problem on our side on the devel environment .

Solved now.

Regards,

Gianantonio .

SanfordWhiteman
Level 10 - Community Moderator

Re: REST API Error: read ECONNRESET

OK, please mark one of our answers as Correct, thanks.