clarity icon indicating copy to clipboard operation
clarity copied to clipboard

External resources 400 bad request

Open dmtrKovalenko opened this issue 3 years ago • 2 comments

When viewing the recording on a platform I noticed that all the external resources return 400 bad requests.

Urls are https://clarity.microsoft.com/external/resources?url={{actual app url}}

Here is the curl output

< HTTP/2 400 
< cache-control: public, max-age=60
< content-type: text/plain; charset=utf-8
< x-cache: CONFIG_NOCACHE
< x-msedge-ref: Ref A: 3583748E6D8B463099D411B0A731CB89 Ref B: VIEEDGE1116 Ref C: 2022-07-19T11:53:52Z
< date: Tue, 19 Jul 2022 11:53:52 GMT

But the body returns the correct URL.

Issue request: Can you please provide more info in the body about why this request gets 400 and how to resolve this issue.

dmtrKovalenko avatar Jul 19 '22 11:07 dmtrKovalenko

I have the same issue. Curl works fine, but in the platform every external resource (css in primis) give 400.

Palm5 avatar Jul 25 '22 13:07 Palm5

+1

Warxcell avatar Sep 13 '22 13:09 Warxcell

Same. I already had to rewrite our stylesheet and image URLs server-side to get around the fact that Clarity doesn't handle the <base> tag; now this is causing all of our CDN bootstrap calls to fail.

eschulma avatar Oct 19 '22 21:10 eschulma

@dmtrKovalenko ,we cannot find any logs for the traceId shared in your report. Can you share with i exact link?

We do handle the base tag so could you please share references and your projectIds/sample recordings/failing requests so that we can check deeper.

ClaritySupport avatar Oct 20 '22 14:10 ClaritySupport