You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/07/21 13:31:17 UTC

[GitHub] [incubator-apisix] membphis commented on pull request #1735: bugfix: failed to fetch upstream, apisix may be starting.

membphis commented on pull request #1735:
URL: https://github.com/apache/incubator-apisix/pull/1735#issuecomment-661863038


   we can close this PR, it has been fixed in the master branch.
   
   https://github.com/apache/incubator-apisix/blob/master/apisix/init.lua#L374-L378
   
   ```lua
       if up_id then
           local upstreams = core.config.fetch_created_obj("/upstreams")
           if upstreams then
               local upstream = upstreams:get(tostring(up_id))
               if not upstream then
                   core.log.error("failed to find upstream by id: " .. up_id)
                   return core.response.exit(500)
               end
   ```
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org