webysther / hoppscotch-docker

All-in-one hoppscotch image that works with one domain and have embed smtp
https://hub.docker.com/r/webysther/hoppscotch
MIT License
19 stars 5 forks source link

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

Open oneil1838 opened 3 months ago

oneil1838 commented 3 months ago

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
      - SMTP_USER=hoppy@smtp.mydomain.com
      - 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 commented 1 week ago

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

oneil1838 commented 1 week ago

@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 commented 1 week ago

@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?