otuv

otuv

Phoenix socket origin

Hi,

I’m trying to deploy a phoenix application as described in deploy phoenix with releases but fail.

I have set the host in my prod config

config :miew, MiewWeb.Endpoint,
  url: [host: "172.xxx.yy.146", port: 80],

But the socket still fails with the following log:

22:24:19.061 [info] Running MiewWeb.Endpoint with cowboy 2.8.0 at :::4000 (http)
22:24:19.066 [info] Access MiewWeb.Endpoint at http://172.xxx.yy.146/
22:24:27.306 request_id=Fi5RQ0_JnM_25rUAAAAB [info] GET /sheet
22:24:27.330 request_id=Fi5RQ0_JnM_25rUAAAAB [info] Sent 200 in 23ms
22:24:27.638 [error] Could not check origin for Phoenix.Socket transport.

Origin of the request: http://172.xxx.yy.146:4000

Any help appreciated.

(xxx.yy are of cause numbers in the actual mix, log etc)

Marked As Solved

otuv

otuv

Today it worked. No idea why. Probably my mistake of some kind.

Where Next?

Popular in Questions Top

rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New
nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
Lily
In templates/appointment/index.html.eex: <%= for appointment <- @appointments do %> <tr> <td><%= appoi...
New
aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New
pmjoe
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New

Other popular topics Top

New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
axelson
This post is a wiki (feel free to hit the edit button near the bottom right of this post to add your own changes!) This post collects co...
239 49134 226
New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New
sergio
Kind of like when jquery came out, it was super necessary. Existing drag and drop libraries have a bunch of baggage to support old browse...
New

We're in Beta

About us Mission Statement