vardius / go-api-boilerplate

Go Server/API boilerplate using best practices DDD CQRS ES gRPC
https://go-api-boilerplate.local
MIT License
929 stars 135 forks source link

404 page not found/503 Service Temporary Unavailable #35

Closed mar1n3r0 closed 4 years ago

mar1n3r0 commented 4 years ago

Followed that setup: https://kubernetes.io/docs/tasks/access-application-cluster/ingress-minikube/

Browser request: https://go-api-boilerplate.local/users?page=1&limit=10

Browser response: 404 page not found/503 Service Temporary Unavailable

HTTP response:

curl go-api-boilerplate.local
<html>
<head><title>308 Permanent Redirect</title></head>
<body>
<center><h1>308 Permanent Redirect</h1></center>
<hr><center>openresty/1.15.8.2</center>
</body>
</html>

HTTPS response:

curl https://go-api-boilerplate.local/users?page=1&limit=10
[1] 9013
[mar1n3r0@marin-airhead go-api-boilerplate]$ curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
vardius commented 4 years ago

The correct URL is https://go-api-boilerplate.local/users/v1?page=1&limit=10. Note the v1 in the URL path. Can you please let me know where in docs did you get that URL from ? So we can update.

mar1n3r0 commented 4 years ago

Yeah it seems that the underlying links behind the hrefs are the old ones without v1. Now the error is 503 on all endpoints.

vardius commented 4 years ago

Updated hrefs https://github.com/vardius/go-api-boilerplate/commit/1a175d37f311e57f2f6f0b449912ddc7ff53ab66

vardius commented 4 years ago

Yeah it seems that the underlying links behind the hrefs are the old ones without v1. Now the error is 503 on all endpoints.

Are you using Safari ? Works for me with Chrome Version 79.0.3945.88 (Official Build) (64-bit). Note it will not work with Safari because of https://github.com/vardius/go-api-boilerplate/issues/19

mar1n3r0 commented 4 years ago

I am on Chromium 79.0.3945.88. Are you running it via minikube or some other local cluster tool ? Edit: Now hitting some authorization errors on minikube which are preventing pod logs as well might as well be related.

vardius commented 4 years ago

Docker for mac

vardius commented 4 years ago

If this is resolved, considering your experience with minikube. If I could kindly ask you to update Wiki pages with all steps how to run in on minikube ? Maybe create new page on Wiki ?

I have absolutely 0 experience with minikube.

mar1n3r0 commented 4 years ago

No worries once resolved I will provide all info and steps for the Wiki. I actually tried to update the cert-manager chart version today as it is still outdated on the Wiki and updated on the main page. How do I update the Wiki, I saw clone only, not fork ?

vardius commented 4 years ago

Once you accept invitations https://github.com/vardius/go-api-boilerplate/invitations you are going to be able to edit Wiki pages from the webpage. https://github.com/vardius/go-api-boilerplate/wiki/3.4.-Minikube

vardius commented 4 years ago

Ok, I am off to the airport now. Will be back online on 29th. Good luck.

mar1n3r0 commented 4 years ago

Cheers man, safe trip.

Edit: And minikube is working now after a restart.