When using the "Explain" block, which is supposed to explain code using ML, it returns a blank response. The reason for this is that it's trying to make POST request that returns a 405 response (method not allowed).
Some reasons why this might be happening might be:
The server does not accept POST requests to that URL or there’s a redirect involved converting the request to a GET.
Your browser is making a preflight request, which uses the OPTIONS HTTP method. This is to check whether the server will allow the POST request (the 405 status code is sent in the response to the OPTIONS request, not the POST request).
The POST method might not be allowed on which you are sending the request and the request is simply denying you to make any POST request by sending 405 error response
See the screenshots below for more details. The endpoint it is trying to reach is "https://blocks-sandbox.githubnext.com/api/explain", so it could also be that you have to remove the 'sandbox' part from it.
Screenshot of the POST request that's not being allowed
Example of 'blank' explanation returned by the "Explain" block
When using the "Explain" block, which is supposed to explain code using ML, it returns a blank response. The reason for this is that it's trying to make POST request that returns a 405 response (method not allowed).
Some reasons why this might be happening might be:
See the screenshots below for more details. The endpoint it is trying to reach is "https://blocks-sandbox.githubnext.com/api/explain", so it could also be that you have to remove the 'sandbox' part from it.
Screenshot of the POST request that's not being allowed
Example of 'blank' explanation returned by the "Explain" block
The "Explain" block