Skip to content
This repository has been archived by the owner on Jan 3, 2025. It is now read-only.

[BUG] SMTP Seting causes "Network error" after clicking "Magic Link" #7

Closed
oneil1838 opened this issue Jun 20, 2024 · 4 comments
Closed
Assignees

Comments

@oneil1838
Copy link

Describe the bug
After some "trial and error" for the SMTP setting, I've received no more errors in the container log, but when I open my Hoppscotch instance an click on "login", enter my mail-address an click "sent a magic link" and then a little red popup at the button of the page appears for a view seconds with the message "Network Error".

dotenv

# configuration without sensitive data
no env file used.

**docker compose**
```yml
# full file without sensitive data
---
version: "2.1"
services:
  hoppscotch:
    image: webysther/hoppscotch:latest
    container_name: hoppscotch
    networks:
      hoppscotch:
      hoppscotch-db:
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Vienna
      - POSTGRES_DB=hoppscotch
      - POSTGRES_USER=postgres
      - POSTGRES_PASSWORD=POSTGRES_PASSWORD
      - ENABLE_ADMIN=true
      - SMTP_PROTOCOL=smtp
      - SMTP_DOMAIN=smtp.mydomain.com
      - SMTP_PORT=25
      - [email protected]
      - SMTP_PASSWORD=SMTP_PASSWORD
    volumes:
      - /path/to/hoppscoutch/config:/config
    ports:
      - 91:80
    depends_on:
      hoppscotch-db:
        condition: service_healthy
    restart: unless-stopped

  hoppscotch-db:
    image: postgres:alpine
    container_name: hoppscotch-db
    networks:
      hoppscotch-db:
    environment:
      - POSTGRES_DB=hoppscotch
      - POSTGRES_USER=postgres
      - POSTGRES_PASSWORD=POSTGRES_PASSWORD
    volumes:
      - /rpath/to/hoppscoutch/data:/var/lib/postgresql/data
    expose:
      - 5432
    healthcheck:
      test: [
        "CMD-SHELL", "sh -c 'pg_isready -U postgres -d hoppscotch'"
      ]
      interval: 10s
      timeout: 5s
      retries: 5
    restart: unless-stopped

networks:
  hoppscotch:
    name: hoppscotch
  hoppscotch-db:
    name: hoppscotch-db

**To Reproduce**
```portianer-ee:2.20.3

Screenshots
screenshot

Additional context
Same problem appears, when I click on "Save My Workspace"

@svzi
Copy link

svzi commented Sep 25, 2024

@oneil1838 I'm having the same issue. Have you been able to solve it?

@oneil1838
Copy link
Author

@svzi No, i didn't had the time to search a workaround or a way to fix this bug. Sry for no better news from my side.

@svzi
Copy link

svzi commented Sep 25, 2024

@oneil1838 No worries, thanks for the fast response. :) How did you proceed? Did you switch to the official image or did you configure OAuth? Or did you abandon Hoppscotch at all?

@webysther
Copy link
Owner

@oneil1838 No worries, thanks for the fast response. :) How did you proceed? Did you switch to the official image or did you configure OAuth? Or did you abandon Hoppscotch at all?

Hi @svzi I decided to abandon Hoppscotch at all after some consideration, the main one the tool is not stable is better keep the postman collections which is important for me.

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

No branches or pull requests

3 participants