JavaScript error when searching for users in Location Directory

DavidB-ADT
Tera Guru

Been living with this issue for a few releases now. Kicked the can on dealing with it, as we hoped updating the plugins would take care of it organically. That hasn't been the case, so now I'm invested in troubleshooting.

 

DavidBADT_0-1746108153358.png

DavidBADT_1-1746108559403.png

 

Failed to load resource: the server https://adtprod.service-now.com/api/sn_wsd_core/wsd_unified_search/current_location?userSysId=XXXXXXXXXXXXXXXX responded with a status of 500 (Internal Server Error)

 

Anyone else experienced this problem, or any known fixes before I go the route of opening a support case?

4 REPLIES 4

VikMach
Mega Sage

Hi @davidb, looking at the API you have pasted it looks like WSD Location is being queried with that user's sysID and its not finding the relevant component on the page. First picture that you have pasted also points at some of the elements missing while loading.
You can launch "Script Tracer" and start the Script Tracer then launch that page again to see which application file is creating that load error at run time.
Like example below it will show you from where it is coming.

Vikas1_0-1746110528758.png


In this way you can find the source of that error and fix yourself.

 

Hope this helps.
Let me know if it was helpful.

 

Regards,
Vikas K

 

Thanks, will give Script Tracer a go! Not sure what that 'oneway' image issue is about, we don't have anything on our maps like that. I know we built our maps before Indoor Mapping got its overhaul to be an actual CAD program, so I'm thinking that we're starting to reach the point of needing to redo our maps.

 

I also reviewed the API in the REST API explorer - that parameter structure being passed in doesn't match the parameter definitions in the API. Also going to see if we have some WSD components that aren't up-to-date.

Thanks for updating me!
Please update this thread when you find the solution. It will help in future if someone needs similar fix.

Cheers!

D N
Tera Contributor

@DavidB-ADT Im getting the same errors. Were you able to fix this?