GithubHelp home page GithubHelp logo

requests's People

Contributors

3rd-eden avatar aspyrx avatar greenkeeper[bot] avatar jpage-godaddy avatar lpinca avatar mswaagman-godaddy avatar swaagie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

requests's Issues

Feature request: more complete documentation

Hello. Something that would make this library more approachable would be some improved documentation. In particular, although the events are enumerated, there is no description of what is passed to event handlers. This is also confusing:

The API is a mix between the Fetch API, mixed with EventEmitter API for the event handling.

It's not clear if this means that the Promise-based interface of the fetch API is available to use in addition to the documented API or if it's just the API as documented that can be used.

Find a free port

When I first ran the tests, two failed. It took me a minute to figure out the reason -- I was already running something at localhost:8080. Could you use a package like freeport to handle this issue?

An in-range update of browserify is breaking the build 🚨

The devDependency browserify was updated from 16.3.0 to 16.4.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

browserify is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).
  • βœ… coverage/coveralls: First build on greenkeeper/browserify-16.4.0 at 76.577% (Details).

Commits

The new version differs by 5 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of browserify is breaking the build 🚨

Version 14.2.0 of browserify just got published.

Branch Build failing 🚨
Dependency browserify
Current Version 14.1.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

As browserify is β€œonly” a devDependency of this project it might not break production or downstream projects, but β€œonly” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this πŸ’ͺ


Status Details
  • ❌ coverage/coveralls Coverage pending from Coveralls.io Details

  • ❌ continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

Commits

The new version differs by 5 commits .

  • 18e1d65 14.2.0
  • 0e1a7a0 add cli support for --transform-key to support mode's like production/staging/etc..
  • a5aa660 Merge pull request #1701 from wogsland/doc-fix
  • ae281bc Fixed documentation formatting that was bugging me
  • fe8c57b async test for node 7

See the full diff.

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

use DNS Server to request website

the title says everything, I need something to somehow use DNS Server like Cloudflare 1.1.1.1 to make requests because the website only works with it, any idea how? Thanks

Equivalent of `{Β strictSSL: false }`?

Was reading the code and it doesn't look like this exists. Not a huge problem, just trying to understand if this is even possible in the browser. My gut tells me not since it would bypass the security settings of the browser itself if users had not made the security exception themselves beforehand.

Firefox no-content bug

There is also a bug in firefox that will default content to an xmldocument if there is no content and no content type specified which will throw an exception when parsed.

https://bugzilla.mozilla.org/show_bug.cgi?id=521301

This works for me to get around the problem, but can certainly be improved upon (line 86 of browser.js):

var chunk = data.documentElement 
? (!window.JSON ? '' : JSON.stringify(data)) 
: data.slice(requests.offset);

Tests not passing

npm test is not passing for the master branch of this repository. I have run this with node v4 and v6.

$ npm test

> [email protected] test /Users/me/Code/requests
> node test/index.js



  requests
    βœ“ is exported as function


  1 passing (8ms)

# phantomjs:


  requests
    βœ“ is exported as function
    βœ“ increments the internal `.id` for each instance
    βœ“ sets the stream's booleans
    βœ“ stores active requests
    βœ“ does not receive content for 204 requests
    1) can handle large files with streaming
Error: I should never be called
      at test/requests.browser.js:64
      at node_modules/eventemitter3/index.js:150
      at browser.js:89
      at node_modules/eventemitter3/index.js:151
      at node_modules/loads/index.js:112
    2) does not receive content for 204 requests
    3) "after each" hook
    Requested
      βœ“ is exported as a function
      #typeof

  6 passing (2s)
  3 failing

  1) requests can handle large files with streaming:
     Uncaught Error: I should never be called (http://localhost:50749/js/bundle:6735)
  

  2) requests does not receive content for 204 requests:
     done() called multiple times
  

  3) requests "after each" hook:
     Uncaught Error: Unknown assertation failure occured, assumed 0 to be greater than 1 (http://localhost:50749/js/bundle:1178)
  



    βœ“ knows the difference between an array and object
    4) "after each" hook for "knows the difference between an array and object"


  7 passing (2s)
  4 failing

  1) requests can handle large files with streaming:
     Uncaught Error: I should never be called (http://localhost:50749/js/bundle:6735)
  

  2) requests does not receive content for 204 requests:
     done() called multiple times
  

  3) requests "after each" hook:
     Uncaught Error: Unknown assertation failure occured, assumed 0 to be greater than 1 (http://localhost:50749/js/bundle:1178)
  

  4)  "after each" hook for "knows the difference between an array and object":
     undefined is not an object (evaluating 'fn.call')



Error: Exit 1

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.