I installed JWT according to the instruction and tested the /wp-json/jwt-auth/v1/token restpoint via POSTMAN. But I get this response here:
Connection failed: _php_networkgetaddresses: getaddrinfo failed: Name or service not known
In Wordpress the log says:
mysqli::__construct(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: Name or service not known (357) : eval()'d code
pointing to wp-content/plugins/code-snippets/php/snippet-ops.php
It seems it has to do with adding a filter. When I deactivate the filter, the restpoint works again. I use the plugin "Code Snippets" for that.
Here is the extension with the commented out filter:
I installed JWT according to the instruction and tested the /wp-json/jwt-auth/v1/token restpoint via POSTMAN. But I get this response here:
Connection failed: _php_networkgetaddresses: getaddrinfo failed: Name or service not known In Wordpress the log says:
pointing to wp-content/plugins/code-snippets/php/snippet-ops.php
It seems it has to do with adding a filter. When I deactivate the filter, the restpoint works again. I use the plugin "Code Snippets" for that. Here is the extension with the commented out filter:
BTW: /wp-json/jwt-auth/v1/token/validate endpoint works normal.