You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the REST api for a node project (because the Node.js api don't provide enough functions to do what i want.), but when i search for a company, i get an serverside error.
Here what i got :
error:
{ Error: cannot GET /dev/api/search?q=Porostase&page_size=10&type=COMPANY (500)
at Response.toError (/home/node/app/node_modules/superagent/lib/node/response.js:94:15)
at ResponseBase._setStatusProperties (/home/node/app/node_modules/superagent/lib/response-base.js:123:16)
at new Response (/home/node/app/node_modules/superagent/lib/node/response.js:41:8)
at Request._emitResponse (/home/node/app/node_modules/superagent/lib/node/index.js:742:20)
at IncomingMessage.parser (/home/node/app/node_modules/superagent/lib/node/index.js:906:38)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickDomainCallback (internal/process/next_tick.js:218:9)
status: 500,
text: '\n\n<title>500 Could not find MessageBodyWriter for response object of type: java.util.ArrayList of media type: application/xml</title>\n\n\n
Error: Could not find MessageBodyWriter for response object of type: java.util.ArrayList of media type: application/xml
Hello.
I'm using the REST api for a node project (because the Node.js api don't provide enough functions to do what i want.), but when i search for a company, i get an serverside error.
Here what i got :
My request looks like that :
superagent .get('https://{DOMAIN}.agilecrm.com/dev/api/search?q=Porostase&page_size=10&type=COMPANY') .set('Content-Type', 'application/json') .auth(config.agilecrm.email, config.agilecrm.apikey) .end(function(err, response) { console.log(response); return response.statusCode; });
(I've replaced the domain by {DOMAIN} for confidentiality.)
Can't fetch the list too when i'm using CURL and the exemple request.
Here's what i got with CURL:
Am i doing wrong ?
Thanks in advance.
Lucas
The text was updated successfully, but these errors were encountered: