Joget V6 all Json api's are always returning 400

Confluence User - 25 Sep, 2018

I have done the below settings on my local joget server to include the localhost in whitelist domain.

 

Now, when I use any of the json api's, I am always getting 400.

http://localhost:8092/jw/web/json/workflow/package/list

Error:

{"error":{"date":"Tue Sep 25 18:55:45 IST 2018","code":"400","message":""}}

 

Below error is logged in console.

 

 

I have tried with GET and POST reequests but its the same result. So What I am missing here?

Thanks in advance.

 

jogetv6;jsonapi

7


26 Sep, 2018
confluenceUser
confluenceUser

Hey there! 

A status 400 error in the server log is a response status code that indicates that the server was unable to process the request sent by the client due to invalid syntax. 

In short, you don't need to type in the quote marks (") for the white list. 

For example --> localhost

Hope this helps! 

26 Sep, 2018
confluenceUser
confluenceUser

justin I had tried without quotes also and reconfirmed now as well. Still the same result. Also i am able to browse the apps and run the processes so server is responding for that. Just for api's its not responding.Can this happen?

26 Sep, 2018
confluenceUser
1
confluenceUser

For API IP whitelist, leave it blank. For API domain whitelist, just type in --> localhost Hope this helps.

26 Sep, 2018
confluenceUser
confluenceUser

26 Sep, 2018
confluenceUser
confluenceUser

justin I did the same but it worked by giving * in the domain list.For localhost it did not work. Added ss in below comment. Thank you so much for your time.

27 Apr, 2019
confluenceUser
confluenceUser

Same here. * worked, localhost didn't

30 Jun, 2020
confluenceUser
confluenceUser

Same here. Localhost didn't work. But when gave *, CSRF error stopped coming.

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print