githubnext / blocks

A set of files to use as input for Blocks.
https://blocks.githubnext.com
MIT License
337 stars 43 forks source link

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

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

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

post_request_not_allowed

Example of 'blank' explanation returned by the "Explain" block

code_to_be_explained

The "Explain" block

explain_block

lperezmo commented 1 year ago

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