Skip to Content
Author's profile photo Terry Yang

500 error when consuming resultful webservice sdk? One thing to be noticed

[Why raising this question?]

Recently, I was testing restful webservice SDK to get logon-token. However, in my own laptop, for example, /biprws/logon/long always returned {“error_code”:”RWS 00070″,”message”:”Internal server error. (RWS 00070)”} in my javascript.

I got stuck in this problem for a long time because according to documentations, what I should add to header are



non-working network traffic.png

Testing by Postman, everything was good…

After I copying my codes to a machine which only English supported, the codes were working well! After I changing the language setting of my laptop, magically, the codes were working as well!


Working request header:

working request header.png

Non-working request header:

non-working request header.png

Compared working network traffic to non-working network traffic, I found only “Accept-Language” is strongly related to this issue. So, I added another request header “Accept-Language” in my code:

headers:  {
"Accept": "application/json",

Then, OK now.

After adding the header, network traffic showed the request returned 200

working network traffic after adding the header.png

And, the request header was:

working request header.png

And token got.



For non-EN IE user, “Accept-Language”:”en-US” is really really important. Otherwise, such issue may make you confused for a long time.

Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.