Forum Discussion

PerBonomi's avatar
7 years ago

CORS errors for notifications

Hey folks. We're not running any weird integrations, but our moderators in a remote office are seeing this a lot in the console. It seemt eh OOB Lithium notifications are having issues.

Is this purely a Lithium code thing or can it also be dependent on their office's network policies?

Also found this discussion, which perhaps is related? Could it be a combo of Lithium and AWS not playing nice?

10 Replies

  • Strange, seems to be issue for CORS in pushy-sevice of realtime notification.

  • Did you end up finding a solution for this? We're having the same issue

  • Parshant's avatar
    Parshant
    Boss
    6 years ago

    Lindsey ,

    Yes this issue was resolved during new release.

    You can open support ticket for this or mail them to support@lithium.com regarding issue you are facing.

     

  • PerBonomi's avatar
    PerBonomi
    Boss
    6 years ago

    Lindsey wrote:

    Did you end up finding a solution for this? We're having the same issue


    Yeah, we're on 19.5 now and I believe it got sorted at least two minor versions ago.

    What version are you on?

  • Lindsey's avatar
    Lindsey
    Leader
    6 years ago

    We're on version 19.6. It's actually a slightly different error, but it is still for the realtime notifications and causing them not to appear:

    lia-scripts-body-min.js:70 WebSocket connection to 'wss://live-lia-pushy-service-v1.stage.lia.usw2.lithcloud.com/realtime/notification/640193c6-ed50-4da4-989a-f9a03e10ba4d/14?auth=kl4KrFUmGz6UWiveb2UG__b0btew7iAUA1ynWrIFvM_zf1BcaekvxjcDT_XeQ9hC9heLhur7kaMK3qyG2QpcRkaz77y0mItAP8piV6GH4Ww&X-Atmosphere-tracking-id=0&X-Atmosphere-Framework=2.2.1-javascript&X-Atmosphere-Transport=websocket&X-Cache-Date=0&Content-Type=application/json' failed: Error in connection establishment: net::ERR_NAME_NOT_RESOLVED

     We are talking to a member of Khoros now, but they cannot track down the source of the error.

  • PerBonomi's avatar
    PerBonomi
    Boss
    6 years ago

    Curious if you're getting the same issue from different locations, or just one. Tried a VPN?

    Just asking since this looks like a server/DNS error and not something on your side.

  • Lindsey's avatar
    Lindsey
    Leader
    6 years ago

    Yeah, so I tried on our company wifi, our guest wifi, and at my home wifi, and all locations I see the error. The Khoros support member told us he is not seeing the error on his end, but when I asked him to try on his home wifi, he saw the error. This makes me think there is something on Khoros's wifi that is allowing them to bypass something that would cause this?

  • PerBonomi's avatar
    PerBonomi
    Boss
    6 years ago

    Interesting. So when they were on their work/Khoros network they could connect. Can they VPN to work from their home? Wondering if that works.

    Cuz if you gotta be at a Khoros office to be able to connect I'd suggest that may be a problem 🙂

  • Lindsey's avatar
    Lindsey
    Leader
    6 years ago

    Yeah I'm not sure. But yeah they can still connect, it's just the realtime notifications don't show up and give us the WebSocket exception unless they are connected to Khoros wifi

    And yes this is on stage