Jump to content
KenR

Delphi 11 TRestRequest Failure

Recommended Posts

Hi,

 

I am using this to retrieve tokens from HMRC. Exactly the same project works with Delphi 10.4.2 but fails with Delphi 11. I get the error message back "Requests to this endpoint cannot be made with data in query parameters".

 

Is any one aware of any changes in Delphi 11 that may be causing this?

 

Thanks,

 

Ken

Share this post


Link to post
1 hour ago, KenR said:

I am using this to retrieve tokens from HMRC. Exactly the same project works with Delphi 10.4.2 but fails with Delphi 11. I get the error message back "Requests to this endpoint cannot be made with data in query parameters".

 

Is any one aware of any changes in Delphi 11 that may be causing this?

Probably related to this issue https://quality.embarcadero.com/browse/RSP-35341

Share this post


Link to post

Thanks. No more Delphi 11 for me for a while then!

  • Sad 1

Share this post


Link to post

Thanks again, but I have to use TRESTRequest.AddAuthParameter and it doesn't support the additional parameters.I don't want to change the REST.Client.pas unit.

Share this post


Link to post

It's not so much that I'm worried about making a one off change but rather that I'm concerned that there may be other critical errors in Delphi 11.

Share this post


Link to post
1 hour ago, KenR said:

It's not so much that I'm worried about making a one off change but rather that I'm concerned that there may be other critical errors in Delphi 11.

This is entirely understandable.

  • Sad 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×