GAE cloud endpoints - Api not updating after deploy

后端 未结 6 1813
执笔经年
执笔经年 2020-12-01 02:20

I\'m starting to use cloud endpoints in my GAE project but have been running into issues with the api not updating on the server.

  • localhost:8888/_ah/api/expl
6条回答
  •  借酒劲吻你
    2020-12-01 02:42

    I had the same problem, and I checked the admin logs, other logs etc... but still my API wasn't updating to the latest version.

    So I decided to check in the API code for the last method I had written (I am writing in Java 7). And I found out that GAE doesn't like statements like:

    if (!blocked){ .... }
    

    I switched that to:

    if (blocked == false) { ... }
    

    And it worked like a charm. So by the looks of it, GAE scans the new API methods and doesn't accept some shortcuts.

提交回复
热议问题