mangoGoForward edited a comment on issue #4904:
URL: https://github.com/apache/apisix/issues/4904#issuecomment-907969607


   I got some error log when APISIX starts up
   `2021/08/30 10:33:22 [error] 6236#3458403: *14277 [lua] eureka.lua:96: 
service_info(): url :http://127.0.0.1:8080/eureka/v2/, context: ngx.timer
   2021/08/30 10:41:37 [error] 6564#3463510: *11 [lua] eureka.lua:197: invalid 
response body: ���������S�o�0�_,>�@�����PEeh�     
��x8vd;tQ���sB�QU�6�C�w�|�^�乒�4ڱ�;�u�{��<�  
�Y;�(��K�H��z��DS�&ߞ��,��ۇ�ݔ�R;�c�lA-K0 
��'c���D�pPT��W5�ߠt����Tn�F]z�����9�
�i��7/�����늒��>H�b�Qw�m�[��Ca����3�!/,�_��A�
   ��*$7���3�m&��
�G��{jo�.�Mi�{%E4��|�h�C+�=�'��F�ey��CG�డ����"�O�AN��4�(l��&6��Ńt���R��čo���h4�oƽu��jⷠq�
��q��I�74� ��8n�w����C�J��p���RE3�VԮ5�r_.!s�h��)�k^��
�p��UO��'��MU-��b��)���#(��R���Ky(%�Sml��@����&��s����+���C"N/7$:�ƾ���9I��5��-_`���|4�?���^r�ͧI2O��;=�g6��H\��
 err: Expected value but found invalid token at character 1, context: ngx.timer`
   
   Environment
   apisix version (cmd: apisix version):2.9
   OS (cmd: uname -a):Darwin niyaoaidaodeMacBook-Pro.local 20.5.0 Darwin Kernel 
Version 20.5.0: Sat May  8 05:10:33 PDT 2021; 
root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64
   OpenResty / Nginx version (cmd: nginx -V or openresty -V):nginx version: 
openresty/1.19.3.2
   etcd version, if have (cmd: run curl http://127.0.0.1:9090/v1/server_info to 
get the info from server-info 
API):{"version":"2.9","last_report_time":1630291416,"boot_time":1630291297,"etcd_version":"3.5.0","up_time":153,"hostname":"niyaoaidaodeMacBook-Pro.local","id":"f13398f9-bed6-44f1-9ad4-50c9d73401bb"}
   apisix-dashboard version, if have:
   luarocks version, if the issue is about installation (cmd: luarocks 
--version):/usr/local/bin/luarocks 3.7.0
   
   APISIX conf.config.yaml:
   ```
   discovery:                       # service discovery center
    eureka:
      host:                        # it's possible to define multiple eureka 
hosts addresses of the same eureka cluster.
        - "http://127.0.0.1:8080";
      prefix: /eureka/v2/
      fetch_interval: 30           # default 30s
      weight: 100                  # default weight for node
      timeout:
        connect: 2000              # default 2000ms
        send: 2000                 # default 2000ms
        read: 5000                 # default 5000ms
   ```
   I notice Eureka REST operations is different:
   
   Query for all instances | GET /eureka/v2/apps | HTTP Code: 200 on success 
Output: JSON/XML
   -- | -- | --
   
   
   so I change apisix conf, discovery.eureka.prefix = /eureka/v2/
   I got instances via curl correctly
   `
   curl --compressed  -i -X GET "http://localhost:8080/eureka/v2/apps"; -H 
"Accept: application/json"
   `
   
   @tokers 


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

To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org

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


Reply via email to