简体   繁体   中英

404 when Migrating Go AppEngine app from Ubuntu to macOS

I have an app using go-endpoints to set up a backend. When running locally in Ubuntu I can send requests to the backend and see the API explorer at localhost:8080/_ah/api/explorer. I tried moving the code to a new Macbook Pro running macOS Sierra 10.12.3 and now I get a 404 when trying to send requests to the local server.

I can deploy the app from my Macbook and the backend works as expected so it is just the local server giving issues.

I have tried this advice from Google on hitting the API explorer locally.

I tried following this advice on general Sierra issues with localhost servers.

My yaml file is very simple:

module: default
runtime: go
api_version: go1

handlers:
- url: /_ah/spi/.*
  script: _go_app

I have tried searching every combination of appengine, localhost, go, endpoints, sierra, 404 and none of the solutions work.

This seems to be a bug in the Python SDK (used by the the Go SDK for the development server). Version 1.9.40 works fine, but v1.9.49 is broken. If you're using the GCloud SDK, v137.0.1 is the last working version (includes v1.9.40 of the Python Extensions).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM