Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 error on automatic api call #83

Open
ciriousjoker opened this issue Mar 7, 2022 · 6 comments
Open

404 error on automatic api call #83

ciriousjoker opened this issue Mar 7, 2022 · 6 comments

Comments

@ciriousjoker
Copy link

ciriousjoker commented Mar 7, 2022

GET https://[projectname]-test.chargebeestatic.com/api/internal/1646691300/retrieve_js_info 404 breadcrumbs.js:375

An incorrect public key would throw 401, so that's not it. It's also not because we're running a test instance because the sample project is also a test site.

It works with the sample project

{
  site: 'honeycomics-v3-test',
  publishableKey: 'test_qoH22RugUvm5IcxoqUD5Svdcu9mX5figf'
}

(We're using Angular if that matters)

EDIT:
Given that breadcrumps.js seems to be from Sentry error monitoring, you can probably see these errors there as well.

@nnmrts
Copy link

nnmrts commented Aug 21, 2022

Encountering the same issue, any idea @cb-dinesh? And did you somehow find a workaround @ciriousjoker?

@ciriousjoker
Copy link
Author

@nnmrts Nope. I've contacted support and got back a "will look at this", but nothing actually came out of it. No idea what this is, but it seems like it's not causing any issues so we just ignored it

@nnmrts
Copy link

nnmrts commented Aug 22, 2022

@ciriousjoker Thanks for the answer, I see...

One "problem" is that several analysis tools will scream at you because there's a 404.
Another problem is that this request takes relatively long, blocking the whole site for like 200-500ms, which is fine for huge sites which load that long anyway. But my cache-optimized site loads instantly without Chargebee, but with it there's a short flicker that's quite annoying...

I found one other website on the internet that loads this retrieve_js_info successfully: https://linkvertise.com (open this site with a good adblocker like uBlock Origin)

Their JS is obfuscated so it's hard to see what they are doing right...

EDIT: I might just call the guy behind Linkvertise and see if they or their dev team know more about this...

@MadaShindeInai
Copy link

MadaShindeInai commented Aug 25, 2022

Tried test.chargebee.com instead test.chargebeestatic.com , and request was successful. But i am not able to fix it somehow as it is part of external script.
Also suggested Drop-In setup do not work for me. Iframe simply do not appear/opens.

@MadaShindeInai
Copy link

MadaShindeInai commented Aug 25, 2022

If we using Item specific URL flow we can see this in console. And the same error as mentioned above.
Screenshot 2022-08-25 at 13 15 24

@MadaShindeInai
Copy link

UPD. Looks like the main issue fixed.
This errors still occur.
Screenshot 2022-08-30 at 14 01 09

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants