Git Product home page Git Product logo

blocks-examples's Introduction

GitHub Next

This repo is a public point of contact for the GitHub Next team!

  • For more about us, visit githubnext.com
  • Join us on the GitHub Next Discord! A space for discussing our projects, and connecting with other folks who are passionate about the future of software development and developer experiences.

✌️❤️

blocks-examples's People

Contributors

colebemis avatar dependabot[bot] avatar docimin avatar haikyuu avatar irealva avatar jaked avatar mattrothenberg avatar wattenberger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

blocks-examples's Issues

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

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:

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

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

Code tour broken: process not found (in cq)

The code tour example uses https://github.com/fullstackio/cq as a dependency, and it crashes the block because of the error

caught (in promise) ReferenceError: process is not defined
    at <anonymous>:225:8738
    at <anonymous>:21:540
    at <anonymous>:249:31896
    at BlockBundle (<anonymous>:261:1270)
    at $9 (index-9736b164.js:47:538)
    at j9 (index-9736b164.js:47:1437)
    at D9 (index-9736b164.js:47:1685)
    at o (i

The error happens in the deployed code as well as in development.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.