Open dlanz opened 2 years ago
@dlanz , We are Clarity support team. Could you please share link to page on your website where Clarity was installed and you are seeing above errors to investigate further.
Sure, so it is intermittent, but I have received these 503/CORS errors on this particular page previously: https://my.centralsemi.com/
Hi Dan,
Thanks for sharing details. We are not seeing any error on your website. Is there any specific conditions to repro that issue?
Adding Clarity to your default-src directive should resolve the issue.
Thanks, Clarity Support Team Visit our docs!: https://docs.microsoft.com/en-us/clarityhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fclarity&data=05%7C01%7Cv-vidasa%40microsoft.com%7C343fe08f40a94e184c6408da28fedd21%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637867372409365494%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Q1zklwmipOGmVmg01HjPFwTVAwft75whSRoB8fFF%2BoY%3D&reserved=0 @.**@.> @.***
Confidentiality note: This e-mail, and any attachment to it, contains privileged and confidential information intended only for the use of the individual(s) or entity named in the e-mail. If the reader of the e-mail is not the intended recipient, or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that reading it is strictly prohibited. If you have received this e-mail in error, please immediately return it to the sender and delete it from your system.
From: Dan @.> Sent: Friday, October 28, 2022 6:08 AM To: microsoft/clarity @.> Cc: Microsoft Clarity Support @.>; Comment @.> Subject: Re: [microsoft/clarity] Intermittent CORS errors and 503 responses (With CSP already configured) (Issue #293)
Sure, so it is intermittent, but I have received these 503/CORS errors on this particular page previously: https://my.centralsemi.com/https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmy.centralsemi.com%2F&data=05%7C01%7Cv-vikasd%40microsoft.com%7C7d2f919d7dff42c35d9f08dab8e575e5%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638025592954800963%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=O%2FtgtZuT2rseUb%2BVOIdk5zZouoIT%2BfosWX%2FCkD1ucW8%3D&reserved=0
- Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fclarity%2Fissues%2F293%23issuecomment-1294979679&data=05%7C01%7Cv-vikasd%40microsoft.com%7C7d2f919d7dff42c35d9f08dab8e575e5%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638025592954800963%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=6IRQCzawCIoQqZPWucqmNk0mPpq%2BIBHWrfjJc66dcLE%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAW5BXQ7PAZDXXTJ47AT5HETWFPF3RANCNFSM6AAAAAARQF3FPI&data=05%7C01%7Cv-vikasd%40microsoft.com%7C7d2f919d7dff42c35d9f08dab8e575e5%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638025592954800963%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=qkZky8FA6Yycb2J10eYtyktvEVZHJpsqvv%2B65FWcDxc%3D&reserved=0. You are receiving this because you commented.Message ID: @.**@.>>
Yeah, it's intermittent. Sometimes it happens and sometimes it doesn't. I haven't been able to pin down any commonality among the times where the errors occur.
Is there some set of actions I should take the next time it occurs which might help pin down the issue? Would a HAR file dump be helpful?
Hi Dan,
Yes, error logs would be helpful to investigate issue. Please do share HAR file attachment if it occurs next time.
Thanks, Clarity Support Team Visit our docs!: https://docs.microsoft.com/en-us/clarityhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fclarity&data=05%7C01%7Cv-vidasa%40microsoft.com%7C343fe08f40a94e184c6408da28fedd21%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637867372409365494%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Q1zklwmipOGmVmg01HjPFwTVAwft75whSRoB8fFF%2BoY%3D&reserved=0 @.**@.> @.***
Confidentiality note: This e-mail, and any attachment to it, contains privileged and confidential information intended only for the use of the individual(s) or entity named in the e-mail. If the reader of the e-mail is not the intended recipient, or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that reading it is strictly prohibited. If you have received this e-mail in error, please immediately return it to the sender and delete it from your system.
From: Dan @.> Sent: Friday, October 28, 2022 6:21 AM To: microsoft/clarity @.> Cc: Microsoft Clarity Support @.>; Comment @.> Subject: Re: [microsoft/clarity] Intermittent CORS errors and 503 responses (With CSP already configured) (Issue #293)
Yeah, it's intermittent. Sometimes it happens and sometimes it doesn't. I haven't been able to pin down any commonality among the times where the errors occur.
Is there some set of actions I should take the next time it occurs which might help pin down the issue? Would a HAR file dump be helpful?
- Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fclarity%2Fissues%2F293%23issuecomment-1294993015&data=05%7C01%7Cv-vikasd%40microsoft.com%7C8b46145a1f6d487c23b508dab8e7358a%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638025600468758371%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=RnrvFkfg3pKUBE5ofhnxgPFBPA34k1TnYGmyXgCw4gs%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAW5BXQ7O5GC7CEQKLPEHCCDWFPHKPANCNFSM6AAAAAARQF3FPI&data=05%7C01%7Cv-vikasd%40microsoft.com%7C8b46145a1f6d487c23b508dab8e7358a%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638025600468758371%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=gqkWdpp3Wp7GuhTk5ov%2FU3buJhGlmC%2Bm6I1RrWN%2F3NU%3D&reserved=0. You are receiving this because you commented.Message ID: @.**@.>>
@ClaritySupport
I had the the 503 CORS errors occur again, but on a different site, intranet only though. Attached is the exported HAR file. I went through and removed some information, nothing pertaining to Clarity though.
Note, I had to rename to .txt in order to attach.
This issue is still occurring, are there other error logs I can provide which might help?
Hi Dan,
We don't see any errors on your website console.Could you please share below details to assist you further.
Thanks, Clarity Support Team Visit our docs!: https://docs.microsoft.com/en-us/clarityhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fclarity&data=05%7C01%7Cv-vidasa%40microsoft.com%7C343fe08f40a94e184c6408da28fedd21%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637867372409365494%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Q1zklwmipOGmVmg01HjPFwTVAwft75whSRoB8fFF%2BoY%3D&reserved=0 @.**@.> @.***
Confidentiality note: This e-mail, and any attachment to it, contains privileged and confidential information intended only for the use of the individual(s) or entity named in the e-mail. If the reader of the e-mail is not the intended recipient, or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that reading it is strictly prohibited. If you have received this e-mail in error, please immediately return it to the sender and delete it from your system.
From: Dan @.> Sent: Wednesday, January 4, 2023 7:46 AM To: microsoft/clarity @.> Cc: Microsoft Clarity Support @.>; Mention @.> Subject: Re: [microsoft/clarity] Intermittent CORS errors and 503 responses (With CSP already configured) (Issue #293)
This issue is still occurring, are there other error logs I can provide which might help?
- Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fclarity%2Fissues%2F293%23issuecomment-1371094134&data=05%7C01%7Cv-vikasd%40microsoft.com%7C39acf8dfa0754137aa9208daee6ab5b3%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638084439366866312%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=sxAoI6NNKT9XjzQexV2Uf6z0hFzNSjMoB6weduUw%2F0c%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAW5BXQ3UL7TQFF2RIWSJBT3WQWLJVANCNFSM6AAAAAARQF3FPI&data=05%7C01%7Cv-vikasd%40microsoft.com%7C39acf8dfa0754137aa9208daee6ab5b3%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638084439366866312%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=GKskuLQjQMM1NmhmV2%2BU5PE%2FiJ5ft6YgkjgMfRvtBSo%3D&reserved=0. You are receiving this because you were mentioned.Message ID: @.**@.>>
Yeah, the issue is intermittent, most of the time it works fine. That's why I provided the HAR export of one of the times it did NOT work.
In the har.txt previously posted, do a search for "status": 503
. You'll see there are 6 total resources which received a 503 response code. All 6 are on the https://a.clarity.ms/collect end-point.
User agent at the time of the har.txt file was recorded was: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36
Current version of Chrome is (has changed since the har.txt was recorded): Version 108.0.5359.125 (Official Build) (64-bit)
I do not remember what version of Chrome I had when I recorded the har.txt. But the same issues have continued to occur on the current version.
@ClaritySupport
Hi Dan,
Apologies for delay. 503s don't have CSP headers, so they will expectedly show up as CSP errors. They can happen intermittently during minor service outages and health degradations. I don't think the you mentioned you found 6 instances of these 503s, but it is unclear what the time period is. 6 in a month would be normal, 6 every day is not ok.
Are you seeing these 503s consistently, or is it a rare event? Some tiny level of 503s is inevitable and should not impact your Clarity or website experience significantly. But if you are constantly finding these 503s happening, please share their project id or website url to investigate further.
Thanks, Clarity Support Team Visit our docs!: https://docs.microsoft.com/en-us/clarityhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fclarity&data=05%7C01%7Cv-vidasa%40microsoft.com%7C343fe08f40a94e184c6408da28fedd21%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637867372409365494%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Q1zklwmipOGmVmg01HjPFwTVAwft75whSRoB8fFF%2BoY%3D&reserved=0 @.**@.> @.***
Confidentiality note: This e-mail, and any attachment to it, contains privileged and confidential information intended only for the use of the individual(s) or entity named in the e-mail. If the reader of the e-mail is not the intended recipient, or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that reading it is strictly prohibited. If you have received this e-mail in error, please immediately return it to the sender and delete it from your system.
From: Dan @.> Sent: Wednesday, January 4, 2023 10:34 AM To: microsoft/clarity @.> Cc: Microsoft Clarity Support @.>; Mention @.> Subject: Re: [microsoft/clarity] Intermittent CORS errors and 503 responses (With CSP already configured) (Issue #293)
Yeah, the issue is intermittent, most of the time it works fine. That's why I provided the HAR export of one of the times it did NOT work.
In the har.txt previously posted, do a search for "status": 503. You'll see there are 6 total resources which received a 503 response code. All 6 are on the https://a.clarity.ms/collecthttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fa.clarity.ms%2Fcollect&data=05%7C01%7Cv-vikasd%40microsoft.com%7C0c993adb43ea411dd53b08daee822fab%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638084540204320756%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=MvmwS6OvTxeTbq9DpmlOoJGTVUdbYN1Ii68MVUPaPak%3D&reserved=0 end-point.
User agent at the time of the har.txt file was: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36
Current version of Chrome is (has changed since the har.txt was generated): Version 108.0.5359.125 (Official Build) (64-bit)
I do not remember what version of Chrome I had when I generated the har.txt. But the same issues have continued to occur on the current version.
- Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fclarity%2Fissues%2F293%23issuecomment-1371280708&data=05%7C01%7Cv-vikasd%40microsoft.com%7C0c993adb43ea411dd53b08daee822fab%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638084540204320756%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=%2FwrsfGhZTmEmDnCV2mWIwD%2BDrsuAzrpbOdsrU3kfaH8%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAW5BXQ4AJXPOZ4HMPODNHX3WQW673ANCNFSM6AAAAAARQF3FPI&data=05%7C01%7Cv-vikasd%40microsoft.com%7C0c993adb43ea411dd53b08daee822fab%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638084540204320756%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=BKqOP5zC28ti%2FBt6XVyRp%2B7U5zsfUFTmAmnJmaT8oC8%3D&reserved=0. You are receiving this because you were mentioned.Message ID: @.**@.>>
The 6 instances in the HAR file I provided occurred within a minute or two. It usually happens in clusters like that when it does occur though. As far as how often these clusters occur, it's not too frequently. But frequently enough that I noticed it happening repeatedly.
Is it correct that:
If the above two statements are true, then I am content with these occasionally occurring, no need to investigate further.
Hi Dan,
The both statements are true. 500s from Clarity servers cannot disrupt the Web page in any way.
Thanks, Clarity Support Team Visit our docs!: https://docs.microsoft.com/en-us/clarityhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fclarity&data=05%7C01%7Cv-vidasa%40microsoft.com%7C343fe08f40a94e184c6408da28fedd21%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637867372409365494%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Q1zklwmipOGmVmg01HjPFwTVAwft75whSRoB8fFF%2BoY%3D&reserved=0 @.**@.> @.***
Confidentiality note: This e-mail, and any attachment to it, contains privileged and confidential information intended only for the use of the individual(s) or entity named in the e-mail. If the reader of the e-mail is not the intended recipient, or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that reading it is strictly prohibited. If you have received this e-mail in error, please immediately return it to the sender and delete it from your system.
From: Dan @.> Sent: Tuesday, January 31, 2023 11:07 AM To: microsoft/clarity @.> Cc: Microsoft Clarity Support @.>; Mention @.> Subject: Re: [microsoft/clarity] Intermittent CORS errors and 503 responses (With CSP already configured) (Issue #293)
The 6 instances in the HAR file I provided occurred within a minute or two. It usually happens in clusters like that when it does occur though. As far as how often these clusters occur, it's not too frequently. But frequently enough that I noticed it happening repeatedly.
Is it correct that:
If the above two statements are true, then I am content with these occasionally occurring, no need to investigate further.
- Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fclarity%2Fissues%2F293%23issuecomment-1410918417&data=05%7C01%7Cv-vikasd%40microsoft.com%7C5f5e1ca7b62945acf00d08db03be52d7%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638107888240029401%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=D9b286Y9h5MrxvGxz8u4zWVMV4YWLmAoeRw7RXD2ehM%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAW5BXQZ3MWG2AVZE5O6NXP3WVFPFBANCNFSM6AAAAAARQF3FPI&data=05%7C01%7Cv-vikasd%40microsoft.com%7C5f5e1ca7b62945acf00d08db03be52d7%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638107888240029401%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=I27fXNlfWyD6b4Dyaq9Ut2mmU8ThVp5IGxPrze1uTPM%3D&reserved=0. You are receiving this because you were mentioned.Message ID: @.**@.>>
Hey @ClaritySupport , I'm having the same problem on my website, and we're not using CSP. This issue seems to be specific to Safari.
This is the page where it's happening : checkout
@eddivalen,The console errors in Safari are harmless (and unavoidable). The actual javascript is not throwing in its execution thread, Safari just logs attempts to access iframes like this as console errors.
Hi,
I followed the "Install Manually" instructions here: https://learn.microsoft.com/en-us/clarity/clarity-setup And I added the appropriate CSP entries as outlined here: https://learn.microsoft.com/en-us/clarity/clarity-csp And I'm also only permitting Clarity to perform any actions after the user provides consent by following the steps outlined here: https://learn.microsoft.com/en-us/clarity/cookie-consent
And I can confirm the _clck cookie is set as expected after providing consent.
For the most part, Clarity appears to be working perfectly fine. I have many results showing up in my dashboard.
But I'm intermittently getting CORS errors and 503 responses. Sometimes I get them, other times everything seems fine.
Among other domains, the CSP on my page includes: Content-Security-Policy: default-src 'self' 'unsafe-inline' *.clarity.ms clarity.ms c.bing.com
This issue (https://github.com/microsoft/clarity/issues/59) seems to be my exact behavior, but a solution was never posted. The OP says they never figured it out, but it eventually stopped happening. However, one of the suggestions was to configured a CSP properly, which I've done and still getting the errors. I've found the same post across multiple sites, but beyond this user's posts, the only relevant information I can find involves setting a CSP.
I'm not even sure how CSP would affect this to be honest. A failure of the CSP would prevent the request from even being made. If my understanding is correct, CORS means the clarity servers aren't configured to accept cross origin requests from my domain. But aside from the "Website URL" field in the dashboard, I don't see any options to specify a domain.
Just want to note, I have another oddity involving the first occurrence of the left click mouse event and clarity requests. But I don't intend to ask about that here and now, just figured I'd mention it in case it was relevant for some reason I'm unaware of.