Skip to content
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

The email address plausible@localhost is invalid. #210

Open
spawnfur opened this issue Jan 29, 2025 · 2 comments
Open

The email address plausible@localhost is invalid. #210

spawnfur opened this issue Jan 29, 2025 · 2 comments

Comments

@spawnfur
Copy link

when i try to add a website and there are no other websites on the account, i get this error:

plausible          | 20:58:19.417 [error] #PID<0.4803.0> running PlausibleWeb.Endpoint (connection #PID<0.4801.0>, stream id 2) terminated
plausible          | Server: localhost:3008 (http)
plausible          | Request: POST /sites?flow=provisioning
plausible          | ** (exit) an exception was raised:
plausible          |     ** (ArgumentError) The email address `plausible@localhost` is invalid.
plausible          | 
plausible          |         (mail 0.3.1) lib/mail/renderers/rfc_2822.ex:134: Mail.Renderers.RFC2822.validate_address/1
plausible          |         (mail 0.3.1) lib/mail/renderers/rfc_2822.ex:141: Mail.Renderers.RFC2822.render_address/1
plausible          |         (mail 0.3.1) lib/mail/renderers/rfc_2822.ex:97: Mail.Renderers.RFC2822.render_header/2
plausible          |         (elixir 1.17.1) lib/enum.ex:1703: Enum."-map/2-lists^map/1-1-"/2
plausible          |         (elixir 1.17.1) lib/enum.ex:1703: Enum."-map/2-lists^map/1-1-"/2
plausible          |         (mail 0.3.1) lib/mail/renderers/rfc_2822.ex:174: Mail.Renderers.RFC2822.render_headers/2
plausible          |         (mail 0.3.1) lib/mail/renderers/rfc_2822.ex:56: Mail.Renderers.RFC2822.render_part/2
plausible          |         (bamboo_mua 0.2.2) lib/bamboo_mua.ex:57: Bamboo.Mua.deliver/2

my env variables are:

BASE_URL: http://localhost:3008
SECRET_KEY_BASE: redacted
DATABASE_URL: postgres://postgres:postgres@plausible_db:5432/plausible
CLICKHOUSE_DATABASE_URL: http://plausible_events:8123/plausible
@ruslandoga
Copy link
Contributor

ruslandoga commented Jan 29, 2025

👋 @spawnfur

Right now, BASE_URL should
contain a fully qualified domain name. But it's a bug and localhost should be allowed :)

@ruslandoga
Copy link
Contributor

Alternatively, you can set MAILER_EMAIL to some valid email address and it would fix this error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants