kushranada
kushranada
DDeno
Created by kushranada on 1/14/2024 in #help
Deno deploy - My simple mail service is giving a connection error (works fine locally or on vercel)
As the title states my small email sending API is not working on deno deploy. Maybe there needs to be additional configuration or there are some limitations to deno deploy of which I am unaware. I am using nodemailer as my mailing service. This is the repository https://github.com/Robspin/deno-mail-api The error is: gcp-europe-west4Error: connect ECONNREFUSED 52.97.183.194:587 - Local (undefined:undefined) at node_internal_captureLargerStackTrace (ext:deno_node/internal/errors.ts:91:9) at node_internal_exceptionWithHostPort (ext:deno_node/internal/errors.ts:215:10) at TCPConnectWrap._afterConnect [as oncomplete] (node:net:170:16) at TCP.afterConnect (ext:deno_node/internal_binding/connection_wrap.ts:45:11) at ext:deno_node/internal_binding/tcp_wrap.ts:302:14 at eventLoopTick (ext:core/01_core.js:182:7) { errno: -111, code: "ESOCKET", syscall: "connect", address: "52.97.183.194", port: 587, localAddress: undefined, localPort: undefined, command: "CONN" } Help will be much appreciated
3 replies
DDeno
Created by kushranada on 3/5/2023 in #help
Fresh in a Docker exiting process
Not sure whats going wrong. Works fine on deno deploy. But when trying to run it inside a docker container the process exits shortly after starting. https://github.com/Robspin/deno-fresh-blog My Dockerfile:
FROM denoland/deno:1.31.1

ARG GIT_REVISION
ENV DENO_DEPLOYMENT_ID=${GIT_REVISION}

WORKDIR /app

COPY . .
RUN deno cache main.ts --import-map=import_map.json

EXPOSE 8000

CMD ["task", "production"]
FROM denoland/deno:1.31.1

ARG GIT_REVISION
ENV DENO_DEPLOYMENT_ID=${GIT_REVISION}

WORKDIR /app

COPY . .
RUN deno cache main.ts --import-map=import_map.json

EXPOSE 8000

CMD ["task", "production"]
Does anyone have any thoughts or similar experience?
10 replies