KenR 29 Posted October 11, 2021 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
Dalija Prasnikar 1396 Posted October 11, 2021 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
KenR 29 Posted October 11, 2021 Thanks. No more Delphi 11 for me for a while then! 1 Share this post Link to post
Dmitry Arefiev 101 Posted October 11, 2021 There are posted workarounds: https://quality.embarcadero.com/browse/RSP-35365 1 Share this post Link to post
KenR 29 Posted October 11, 2021 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
Dmitry Arefiev 101 Posted October 11, 2021 Why you dont want to change the REST.Client.pas unit ? Share this post Link to post
KenR 29 Posted October 11, 2021 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
Guest Posted October 11, 2021 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. Share this post Link to post
Guest Posted October 11, 2021 5 hours ago, Dalija Prasnikar said: Probably related to this issue https://quality.embarcadero.com/browse/RSP-35341 Ouch! Now KenR's concerns are not just entirely understandable. They have upgraded to sound advice 🙂 Share this post Link to post