Undefined Error In WebLogin (processing response)

I've just updated my apps to Delphi 12.2 and the latest Sphinx/Xdata and WebCore.

After logging in when Sphinx is validating the response I get an undefined exception. It doesn't write to the console, but shows up in the red window
image

The stack is

CheckCallBack
Client.FinishAuthorize
ProcessAuthResponse
ToidcClient.CheckProviderInformation
TOidcClient.GetProviderMetaData
TOidcClient.GetJsonProviderMetadata
 > Response := await(SendHttpRequestAsync(Request));
  Sphinx.Web.Http.pas - 
    SendHttpRequest
	Xhr.send () ```
	
The exception occurs in the Xhr.send() call. But then it goes to XhrLoad, the Status Code = 200 and the app continues perfectly ok. 

Any ideas what is going on?

Hi @Weetch_Russell, unfortunately I don't see anything wrong.
Are you able to help us to reproduce the issue at our side? Are you able to somehow reproduce this in the Sphinx demo?

I'm not sure. This app doesn't require the user to log in to start with. They can complete a few steps before logging in. I'm not sure if that has an impact or not. It's weird that there is this error, but it doesn't stop the site working as expected.

It does seem to have only started happening when I move to D12.2 and the latest version of XData/WebCore.

@wlandgraf I can give you access to our test site if that would help.

Hi @Weetch_Russell, whatever you think makes it possible for us to compile and debug at our side. If you can send a small project reproducing the issue, connecting to your real servers instead of local server, that's fine.

What we need is to reproduce the issue at our side, and of course that the project reproducing the issue is minimal, so we don't get buried with lots of unrelated code.

I was thinking that you'd know what to look for if you stepped through the JS.

I'll see what I can do

1 Like