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 2022/03/09 08:06:37 UTC

[GitHub] [apisix-dashboard] 840963657 commented on issue #2368: health check has an error message

840963657 commented on issue #2368:
URL: https://github.com/apache/apisix-dashboard/issues/2368#issuecomment-1062654070


   > Hi @840963657, thanks for your report. After examination, there is indeed this problem. Would you like to help fix this problem?
   > 
   > ### The reason
   > The request headers in the health check are empty by default, and in this case, there is no `req_headers` field in the request data sent by the web to the API. However, when the user makes changes in this field, especially by removing all request headers, the data sent to the API contains the `req_headers` field and the value is an empty array, which causes an error.
   > 
   > ### Possible solutions
   > The UI form ensures that requests sent to the API always do not contain the `req_headers` field, regardless of whether the initial value of the request header is empty or the user removes all the request headers. And send the correct array of data to the API after the user has entered the request headers
   
   I‘m sorry,I'm not familiar with JS...’


-- 
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-unsubscribe@apisix.apache.org

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