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

api/ws not found error #11962

Closed
basaran opened this issue May 11, 2024 · 3 comments
Closed

api/ws not found error #11962

basaran opened this issue May 11, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@basaran
Copy link

basaran commented May 11, 2024

Provide the Bytebase version you are using

2.16.0

Describe the bug

Bytebase version: 2.16.0
Golang version: ${GO_VERSION}
Git commit hash: 92574c8
Built on: 1714659219
Built by: goreleaser

On a new install either with the binary or with docker, navigating to localhost:8080 returns the following:

time=2024-05-11T03:25:32.731-04:00 level=INFO source=taskrun/schedulerv2.go:560 msg="TaskSkippedOrDoneListener started"
time=2024-05-11T03:25:33.653-04:00 level=ERROR source=server/routers.go:40 msg="echo request logger" method=GET uri=/api/ws status=404 error="code=404, message=Not Found"
time=2024-05-11T03:25:33.786-04:00 level=ERROR source=server/routers.go:40 msg="echo request logger" method=POST uri=/api/gql status=404 error="code=404, message=Not Found"
time=2024-05-11T03:25:33.845-04:00 level=ERROR source=server/routers.go:40 msg="echo request logger" method=POST uri=/api/gql status=404 error="code=404, message=Not Found"
time=2024-05-11T03:25:35.464-04:00 level=ERROR source=server/routers.go:40 msg="echo request logger" method=GET uri=/service-worker.js status=404 error="code=404, message=Not Found"
time=2024-05-11T03:25:37.280-04:00 level=ERROR source=server/routers.go:40 msg="echo request logger" method=GET uri=/api/ws status=404 error="code=404, message=Not Found"
time=2024-05-11T03:25:37.393-04:00 level=ERROR source=server/routers.go:40 msg="echo request logger" method=POST uri=/api/gql status=404 error="code=404, message=Not Found"
time=2024-05-11T03:25:37.459-04:00 level=ERROR source=server/routers.go:40 msg="echo request logger" method=POST uri=/api/gql status=404 error="code=404, message=Not Found"
time=2024-05-11T03:25:38.289-04:00 level=ERROR source=server/routers.go:40 msg="echo request logger" method=GET uri=/api/ws status=404 error="code=404, message=Not Found"
time=2024-05-11T03:25:38.411-04:00 level=ERROR source=server/routers.go:40 msg="echo request logger" method=POST uri=/api/gql status=404 error="code=404, message=Not Found"
time=2024-05-11T03:25:38.464-04:00 level=ERROR source=server/routers.go:40 msg="echo request logger" method=POST uri=/api/gql status=404 error="code=404, message=Not Found"
time=2024-05-11T03:25:40.151-04:00 level=ERROR source=server/routers.go:40 msg="echo request logger" method=GET uri=/service-worker.js status=404 error="code=404, message=Not Found"
time=2024-05-11T03:25:45.799-04:00 level=ERROR source=server/routers.go:40 msg="echo request logger" method=GET uri=/api/ws status=404 error="code=404, message=Not Found"
time=2024-05-11T03:25:47.792-04:00 level=ERROR source=server/routers.go:40 msg="echo request logger" method=GET uri=/api/ws status=404 error="code=404, message=Not Found"
time=2024-05-11T03:25:47.803-04:00 level=ERROR source=server/routers.go:40 msg="echo request logger" method=GET uri=/api/ws status=404 error="code=404, message=Not Found"

In the browser, I get:

GQL Error: Bytebase
GQL Error: Bytebase
    at CustomGraphQLClient.overrideRequest (http://localhost:8080/index.73f2b561ff69ea8ccfd0.js:2:321130)
    at async NetworkStateService.sessionExpiredInterceptor (http://localhost:8080/index.73f2b561ff69ea8ccfd0.js:2:289407)
    at async SessionExpireService.sessionExpiredInterceptor (http://localhost:8080/index.73f2b561ff69ea8ccfd0.js:2:304006)
    at async SessionResource.loader (http://localhost:8080/index.73f2b561ff69ea8ccfd0.js:2:306942)
    at async SessionResource.loadingTask (http://localhost:8080/index.73f2b561ff69ea8ccfd0.js:2:267063)
    at async SessionResource.taskWrapper (http://localhost:8080/index.73f2b561ff69ea8ccfd0.js:2:267151)
    at async Task.task (http://localhost:8080/index.73f2b561ff69ea8ccfd0.js:2:266749)

Steps to reproduce

Launch with:

docker run --rm --init \
  --name bytebase \
  --publish 8080:8080 --pull always \
  --volume ~/.bytebase/data:/var/opt/bytebase \
  bytebase/bytebase:2.16.0

then navigate to localhost:8080

Expected behavior

It should work

Provide the database you are using

No response

Provide the version control system you are using

No response

Additional context

No response

@basaran basaran added the bug Something isn't working label May 11, 2024
@basaran
Copy link
Author

basaran commented May 11, 2024

I had to clear my localhost storage to restore functionality.

@RainbowDashy
Copy link
Contributor

Bytebase doesn't use GraphQL and the javascript files would be in the /assets folder. I suspect that there might be other services running on port 8080.

@basaran
Copy link
Author

basaran commented May 13, 2024

Thank you for the clarification, it was the browser cache of another service that used to occupy port 8080 then.

@basaran basaran closed this as completed May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants