New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doesn't work in a browser environment (with browserify) for later versions #1252
Comments
Can you tell us where exactly this |
It is not used at all in my configuration. Sorry for the confusion... This error happens as soon as I do: var request=require("request"); If the version of request is 2.47.0. If the version is 2.40.0 it works fine. |
Hi again, Here is a bit more info... I created a file that just looks like:
And compiled it with browserify for the versions 2.40.0 and 2.47.0 of request. The versions are deployed here, with a really simple .html page that loads them: http://limikael.altervista.org/requesttest/requesttest.2.47.0.html When I visit them with a browser (Chrome Version 38.0.2125.104) and look at the javascript console I get different results. For the 2.40.0 I see "hello" there, as one would expect. For the 2.47.0 version I see this error: Uncaught TypeError: undefined is not a function requesttest.bundle.2.47.0.js:4863 If I look at the offending line in the bundle at line 4863, it is the same one:
The context around this function looks like this. Don't know which source file it comes from exactly since it is bundled with browserify:
Hope this helps! Let me know if you need more info! |
@mikeal and collaborators, what do you think about placing a bounty on getting |
I'll pitch in 0.1 BTC towards the bounty |
+1 This should fix it right? |
Yes, with some tweaking, but I wouldn't be surprised if there were other issues once that's resolved. |
Hi, I'm not following 100% what the relationship is between the various projects, request, node-form-data and mime-types. Anyway... 0.1 BTC was promised and I tried to create a bounty here and pay with bitcoin: However, don't know what happened, my bitcoin seems to be lost in cyberspace somehow... Anyway, if this gets resolved and someone posts a bitcoin address I will happily put 0.1 BTC there... :) |
Ping @mikeal re bounty on this issue See form-data/form-data#87, looks like it just needs some cleanup. |
Ok will test it... Something sträng happened at bountysource, but will
|
@limikael the reason I bring up a bounty is we have a pretty decent balance on bountysource just sitting there, but I can't assign any of it (and I wouldn't anyway without agreement from other maintainers). |
Hi, I'm sorry but I don't understand exactly how form-data/form-data#87 is related to this problem and how I can test if it solves it. I'm encountering the problem because of different versions of the request module, but you are referencing something else. I assume that you are doing that because one depends on the other in a way that is very obvious to you, but it's not obvious to me. So if that takes care of if, what do we also need to change in the |
As of more recent versions, I suppose you could test it by making this change in your local copy of |
Now there's form-data/form-data#95 which looks to me like it's ready to go. And, over at #455 @eiriksm has tested this and confirmed that it works. |
Published |
Great, thanks @alexindigo! Now we just need a PR with the new version of |
PR sent over at #1307 |
Fixed at #1307. |
Great! Ok there is then 0.1 BTC sitting here in my wallet that I promised for anyone who resolved this... Bountysource was a little strange, but if someone has a bitcoin address I will just send it... Or maybe I will try this changetip thingy, don't know if it integrates with github but it should... |
Don't know if @eiriksm does bitcoin but I nominate him. |
Hey. Thanks for that thought. Well, we all pitched in here I would say. I nominate that it is the season of giving, so if possible, how about donating it to a good cause? |
@eiriksm Wow that's very noble! I have signed up for changetip and I'm learning how it works now... When that is done I will spread som tip around me here in the thread and then you can spread it on if you want... changetip seems like a cool thing... :) |
Ok @eiriksm trying this now... Have yourself 1 dinner or pass it on! 👍 @changetip |
Hi @eiriksm, @limikael sent you a Bitcoin tip worth 1 dinner (40,673 bits/$15.00), and I'm here to deliver it ➔ collect your tip. |
And @nylen, you certanly deserve 1 applause for your great work! @changetip |
Hi @nylen, @limikael sent you a Bitcoin tip worth 1 applause (27,115 bits/$10.00), and I'm here to deliver it ➔ collect your tip. |
@alexindigo, thanks! Have 1 pizza! @changetip |
Hi @alexindigo, @limikael sent you a Bitcoin tip worth 1 pizza (27,121 bits/$10.00), and I'm here to deliver it ➔ collect your tip. |
@charliedowler, 1 high-five @changetip |
Hi @charliedowler, @limikael sent you a Bitcoin tip worth 1 high-five (13,560 bits/$5.00), and I'm here to deliver it ➔ collect your tip. |
@simov 1 brat! @changetip |
Woah. Thanks for that. I'm keeping my word and donating it to a local charity. And thanks for those kind words @alexindigo . |
+1 cheers guys |
Hi,
I'm using request together with browserify, which used to work fine. However, it doesn't do that anymore... I know that is works for 2.40.0, and for 2.47.0 it does not. Not sure exactly in which version the problem appeared.
However, the problem I'm getting is that is that is chokes on a line that looks like this:
Sorry for the not very detailed report. Do you need more info I'm happy to provide that.
The text was updated successfully, but these errors were encountered: