githubnext / blocks-template

A template for creating custom Blocks.
MIT License
112 stars 11 forks source link

The "Explain" block attempts a POST request that returns a 405 (method not allowed) status when attempting to explain code #55

Closed lperezmo closed 1 year ago

lperezmo commented 1 year ago

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

The endpoint it is trying to reach is "https://blocks-sandbox.githubnext.com/api/explain", one possible cause is that you have to remove the 'sandbox' part from it.

Some other reasons why this might be happening might be:

See the screenshots below for more details.

Screenshot of the POST request that's not being allowed

post_request_not_allowed

Example 'blank' response returned by the explanation block

code_to_be_explained

The 'Explain' block

explain_block

lperezmo commented 1 year ago

Relocated to the right repo (githubnext/blocks-examples)