-
Notifications
You must be signed in to change notification settings - Fork 7
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
WebSocket connection failing #14
Comments
Did you configure |
The code in your installation guide mentions something called Algolia, which I don't use, so I'm not sure what to put in place of it. My site uses Redis, but switching that in did not work. |
Yeah the doc is incorrect. It’s because I work at Algolia and I copy
pasted the name from the codebase I’m working on. It should be your app
name. You can probably use Rails:: instead of Algolia::
I’ll edit the docs.
On February 22, 2024, Marcin Magnus ***@***.***> wrote:
The code in your installation guide mentions something called Algolia,
which I don't use, so I'm not sure what to put in place of it. My site
uses Redis, but switching that in did not work.
—
Reply to this email directly, view it on GitHub
<#14 (comment)-
1960109282>, or unsubscribe
<https://github.com/notifications/unsubscribe-
auth/AALUPBFCUOCDVTDHFXNN5TDYU6LY7AVCNFSM6AAAAABDVHTREWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRQGEYDSMRYGI>.
You are receiving this because you commented.Message ID:
***@***.***>
|
I changed my Rails.application.configure do
...
config.action_cable.allowed_request_origins = [%r{http://*}, %r{https://*}]
end |
Same issue. Would appreciate fix so can try software. |
How do you serve your app? Do you use something like Nginx? If so, you need to have these 2 headers: https://gist.github.com/julienbourdeau/5d5edc2da97f5a35ba4003e6918e0920#file-nginx-site-conf-L26-L27 Until Websocket works, you can have a look at polling mode, which doesn't use websocket: https://debugbar.dev/docs/polling-mode/ |
While testing, I serve it using |
@michaelchadwick try specifying the url of your local site for callback Like this: |
@vkazakevich That worked for me! Thanks! |
@vkazakevich That fixed that error! However, now I get this error in the dev console: |
Can also using |
@Eric-Guo Yeah it's definitely easier, I updated the docs. Thanks! @michaelchadwick This error is fixed in 0.3.0, see #26 @vkazakevich Thank you! I added a troubleshooting section to the docs with your fix 🙏 |
I had further issues as I went down this debug path. Found that the AppSignal logger dumping setup was messing with ActionCable. I updated my initializer that had other logging stuff in it based on this thread (bensheldon/good_job#596 (comment)):
And now it's working great. Adding here for anyone else that hits this weird conflict between semantic logger and debugbar |
I'm trying this awesome project out on a Rails 7.1.3 application, but getting the following error in the dev console:
I think this has something to do with Action Cable, but I'm only moderately familiar with how Ruby on Rails works, and have never used Action Cable before. What might be wrong?
The text was updated successfully, but these errors were encountered: