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/08/04 09:26:59 UTC

[GitHub] [apisix-dashboard] liuxiran opened a new issue #360: [Question]when dashboar started in dev mode and not conect to apisix, why some requests like get routes list can also get response instead of get an error?

liuxiran opened a new issue #360:
URL: https://github.com/apache/apisix-dashboard/issues/360


   Hi all, 
   I have a question that when I run yarn start:no-mock  to start dashboard in dev mode,  and I did not do any settings,
   then I visit http://localhost:8000/routes/list page
   
   I noticed that get routes list request: http://localhost:8000/apisix/admin/routes?page=1&size=20&search=    got a response instead of an error,  I'm confused. there is no api server, why this request did not get an error like Service Unavailable?
   
   looking forward to your reply,many thanks~
   
   
   
   


----------------------------------------------------------------
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



[GitHub] [apisix-dashboard] juzhiyuan commented on issue #360: [Question]when dashboar started in dev mode and not conect to apisix, why some requests like get routes list can also get response instead of get an error?

Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on issue #360:
URL: https://github.com/apache/apisix-dashboard/issues/360#issuecomment-668957188


   emmm the api address should be `localhost:8080` by default.


----------------------------------------------------------------
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



[GitHub] [apisix-dashboard] liuxiran closed issue #360: [Question]when dashboar started in dev mode and not conect to apisix, why some requests like get routes list can also get response instead of get an error?

Posted by GitBox <gi...@apache.org>.
liuxiran closed issue #360:
URL: https://github.com/apache/apisix-dashboard/issues/360


   


----------------------------------------------------------------
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



[GitHub] [apisix-dashboard] liuxiran commented on issue #360: [Question]when dashboar started in dev mode and not conect to apisix, why some requests like get routes list can also get response instead of get an error?

Posted by GitBox <gi...@apache.org>.
liuxiran commented on issue #360:
URL: https://github.com/apache/apisix-dashboard/issues/360#issuecomment-668991059


   thanks very much, when I set localhost:8080, I got the expected response error.
   
   close this issue.
   
   


----------------------------------------------------------------
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



[GitHub] [apisix-dashboard] liuxiran commented on issue #360: [Question]when dashboar started in dev mode and not conect to apisix, why some requests like get routes list can also get response instead of get an error?

Posted by GitBox <gi...@apache.org>.
liuxiran commented on issue #360:
URL: https://github.com/apache/apisix-dashboard/issues/360#issuecomment-668956474


   I checked my request, in chrome netword panel like this:
   ![image](https://user-images.githubusercontent.com/2561857/89365466-40cad900-d707-11ea-89ce-5a6badef7361.png)
   
   the response is:
   ![image](https://user-images.githubusercontent.com/2561857/89365512-5b9d4d80-d707-11ea-870e-5207790f25ff.png)
   
   actually it returned a page
   
   and my API setting like this:
   ![image](https://user-images.githubusercontent.com/2561857/89365939-5260b080-d708-11ea-84c1-67e6a51d21e6.png)
   
   so, under this setting, dashboard fe treated its dev server as the manager-api server, my I right?
   
   
   


----------------------------------------------------------------
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



[GitHub] [apisix-dashboard] juzhiyuan commented on issue #360: [Question]when dashboar started in dev mode and not conect to apisix, why some requests like get routes list can also get response instead of get an error?

Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on issue #360:
URL: https://github.com/apache/apisix-dashboard/issues/360#issuecomment-668894862


   1. Open Network panel in Chrome;
   2. Check the XHR requests;
   3. Visit those requests manually.
   
   Maybe you have deployed the manager-api by accident.


----------------------------------------------------------------
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