Closed HarshaNalluru closed 5 days ago
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @dnssuppgithub.
I debugged into this issue. This is what the URL looks like when we send it causing the 400
https://atlas.microsoft.com/timezone/byId/json?query=America%2FNew_York&api-version=1.0/timezone/byId/json?query=America%2FNew_York&api-version=1.0
For some reason, the provided upstream HOST Uri includes the full URL:
This is supposed to just be the hostname. Not full URI.
It is this combination of full URI + original request URI that is causing the 400 from upstream.
Thanks for the valuable inputs @scbedd, really helped my investigation. I have figured the problem, turned out they were depending on a very old recorder version which has the bug.
I have tested after upgrading to the new recorder and I do not see the problem anymore. ✅
Error from the service in record mode
live vs record modes
To repro
cd sdk/maps/maps-timezone-rest
rush update && rush build -t .
.only
for the first testit.only("should work with Microsoft Entra ID authentication")
Connect AzAccount ...
./eng/common/TestResources/New-TestResources.ps1 maps
to generate resources.env
file with environment variablesTEST_MODE=live
, runrushx test:node
TEST_MODE=record
, runrushx test:node