cancel
Showing results for 
Search instead for 
Did you mean: 

Getting "Invalid argument exception. Nos doc type specified"' while trying to upload file using Rest API

Rupam_Roy
Champ in-the-making
Champ in-the-making

For upload file using Rest API (Nuxeo Platform 7.3 ), I follow this link "https://doc.nuxeo.com/display/NXDOC/How+to+Upload+a+File+in+Nuxeo+Platform+Using+REST+API+Batch+Processing+Endpoint" .

But I am getting "500 Internal Server Error" -- "Invalid argument exception. Nos doc type specified" as Response.

How to resolve this issue .

5 REPLIES 5

Antoine_Cordier
Star Contributor
Star Contributor

Hi,

Rupam_Roy
Champ in-the-making
Champ in-the-making

Hi,

Antoine_Cordier
Star Contributor
Star Contributor

This looks good. As you get a 500 error code, could you post the stack trace and btw what are you using as a client ?

Rupam_Roy
Champ in-the-making
Champ in-the-making

I am using Google Chrome -- Advanced Rest Client.

Anurag_Kumar
Confirmed Champ
Confirmed Champ

Hi,

Please set content type correctly to application/json. for more clarification look at the file attached.