Content-Length: 272356 | pFad | http://github.com/battle-snake/battle_snake/issues/30

7E [error] Could not check origen for Phoenix.Socket transport. · Issue #30 · battle-snake/battle_snake · GitHub
Skip to content

[error] Could not check origen for Phoenix.Socket transport. #30

Open
@exzizt

Description

@exzizt
23:08:48.538 [error] Could not check origen for Phoenix.Socket transport.

This happens when you are attempting a socket connection to
a different host than the one configured in your config/
files. For example, in development the host is configured
to "localhost" but you may be trying to access it from
"127.0.0.1". To fix this issue, you may either:

  1. update [url: [host: ...]] to your actual host in the
     config file for your current environment (recommended)

  2. pass the :check_origen option when configuring your
     endpoint or when configuring the transport in your
     UserSocket module, explicitly outlining which origens
     are allowed:

        check_origen: ["https://example.com",
                       "//another.com:888", "//other.com"]

I run the app with Docker:

docker pull battlesnake/battle_snake
docker run -it -p 3000:3000 battlesnake/battle_snake

I then try to create a game with my snake URLs and get the above error message.
Note that everything works fine with the 2017 server. Docker app is running on 192.168.99.100. My LAN is 10.104.35.xxx. An online snake on a hosting site also gets the same error message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: http://github.com/battle-snake/battle_snake/issues/30

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy