-
-
Notifications
You must be signed in to change notification settings - Fork 99
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
Missing host after Billing approve redirect #42
Comments
I'm experiencing the same error |
After approve billing there is redirect to "/authenticate/token?" without host parameter |
@Kyon147 fix this and the beer is on me 🍺 |
Hey @Tagra When you set up the link for the billing, is it the auto install when the app first loads? Can you try a manual link like this Just want to rule out something. |
App bridge is set to latest, i also tried manually to 2 but nothing changed. App works just fine except after billing is approved, then it throws missing host error in javascript. I think after Billing approval there is redirect to authenticate/token , and token function only sets but token layout also includes @extends('shopify-app::layouts.default') which requires host |
Is is the app install + billing on load that is not working? |
Now if i go back to app it works just fine, it is installed and charge is accepted. So and the end everything works, just that last redirect throwing JS error |
That makes sense, I might have missed the host param passing when using auto install, I'll need to take a look and release a patch as the |
👍 |
+1 But on all pages {name: 'AppBridgeError', message: 'APP::ERROR::INVALID_CONFIG: host must be provided', action: undefined, type: 'APP::ERROR::INVALID_CONFIG', stack: 'AppBridgeError: APP::ERROR::INVALID_CONFIG: host must be provided'} |
I re-added |
It was removed intentionally as it will give you outdated app errors if you keep it in. I'd recommend you remove it as it is no longer going to be supported by Shopify. |
If I delete it, the application no longer works at first install, it remains in loading, with the error in the console: {name: 'AppBridgeError', message: 'APP::ERROR::INVALID_CONFIG: host must be provided', action: undefined, type: 'APP::ERROR::INVALID_CONFIG', stack: 'AppBridgeError: APP::ERROR::INVALID_CONFIG: host must be provided'} This is probably not the solution, but that works now, try to delete the application completely (from shop) and start with a fresh reinstall |
Hey both, Try upgrading to This should be fixed in this version now, as host is being pass all the way through for the billable middleware now. |
Works like a charm 👍 |
@Tagra glad it works for you now and thanks for the appreciation 🙏 |
Failure Information
default.blade.php throwing error
app-bridge@latest:1 Uncaught s {name: 'AppBridgeError', message: 'APP::ERROR::INVALID_CONFIG: host must be provided', action: undefined, type: 'APP::ERROR::INVALID_CONFIG', stack: 'AppBridgeError: APP::ERROR::INVALID_CONFIG: host must be provided'}
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
The text was updated successfully, but these errors were encountered: