Open hafiihzafarhana opened 1 month ago
I think there was an error in closing the browser. So if I change it to another URL, it causes a stuck
I use thunder client, WSL
I'm processing data on Google Form to get title, description, number of pages, and number of questions.
But for now I am focusing on this stuck problem
Please fix the format of your markdown:
6 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1) I run my program code for t..."]
13 MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```go"]
34 MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```go"]
generated by check-issue
Update: I tried using Windows, there was no stuck problem. However, when using Linux a stuck occurs
This is my Dockerfile
# Build stage
FROM golang:1.21.11-alpine3.19 AS builder
WORKDIR /app
COPY . .
RUN go build -o main main.go
RUN apk add curl
# Run stage
FROM alpine:3.14
RUN apk add --no-cache chromium
WORKDIR /app
COPY --from=builder /app/main .
COPY --from=builder /app/migrate.linux-amd64 ./migrate
COPY app.env .
COPY start.sh .
COPY wait-for.sh .
COPY db/migration ./migration
EXPOSE 8080
CMD [ "/app/main" ]
ENTRYPOINT [ "/app/start.sh" ]
Rod is not tested on Alpine. The CI of rod uses ubuntu. Better to use rod=trace
env var to log the details to see where it gets stuck.
But I have no error using Alpine. So, should we using ubuntu or debian?
This is the condition if using alpine:
Idk, what is the problem.
And sometimes I use the same scenarios and steps. it works properly, sometimes it also gets stuck. I have no idea for my issue. Does this happen because my code is not perfect in closing or starting the process?
Doesn't look like a rod issue.
Rod Version: v0.116.1
I have a problem about how to close page or browser, i think.
So this is the scenario: 1) I run my program code for the first time (For the first time it was a success) 2) I tried a second time with other url (My program doesn't error, but it stuck)
Am I wrong about how to close the page and browser after the first running program is run?
This is my code: service.go
util.go