Invalid status code 400 "appId" is null
Laura — Jan 09, 2018 07:32PM UTC
I got this error in some tests
com.applitools.eyes.EyesException: Invalid status code [400 System.ArgumentNullException ['appId' is null]]
Always with Edge browser on different version
I have some other applitools tests that pass on Edge, so the key and other configurations seems to be fine..
6 Community Answers
Justin Ison - Jan 11, 2018 at 06:14PM UTC
That issues seems like the App Name is not getting set when you initialize eyes.open. Are you by chance passing in a variable to assign this value? If so, can you make sure it’s not accidentally getting set to Null?
Laura - Jan 16, 2018 at 09:45AM UTC
I use eye.open("CompanyName", testName, dimensions) method, so the app name is hard coded initialized and for sure not Null.
I also checked manually that before calling the checkRegion method the app name is not Null and I still go this error...
It happen only in few of our tests and all with Edge browser, the same test with other browsers don't have problems... And other tests capture Edge without errors
Justin Ison - Jan 24, 2018 at 08:27PM UTC
Interesting. I can’t really tell why it’s happening on Edge but not others. How about your “testName” variable? are you sure that is not somehow getting set to Null for these particular tests? are you passing in a specific value based on the browser for this parameter?
I believe you’re using Java, right? The latest version is 3.29. Are you using that version? Also, could you share a sample of your script or attach your script? It would definitely help debug this easier. Thanks.
Justin Ison - Jan 29, 2018 at 05:07PM UTC
Hi Laura – Just checking back on this. Are you still encountering this issue?
Laura Chiche - Feb 01, 2018 at 09:24AM UTC
Yes I do :'(
Justin Ison - Feb 16, 2018 at 03:27PM UTC
I apologize for taking a while to get back to you on this. Sorry to hear you’re also encountering this issue. It might be helpful for us to jump on a web session to debug this together. Are you available today to do so? If so, let me know some of your available times and we’ll put something on the schedule. Thanks.