Discourse/Uncategorized/2019-06-23 Testing new donate server

From Noisebridge
Revision as of 01:39, 28 March 2026 by Nthmost (talk | contribs) (Discourse archive import: Testing new donate server [uncategorized])
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

📜 Discourse Archive
This page is preserved verbatim from discuss.noisebridge.info, the Noisebridge community forum that operated roughly 2018–2022. The original site is defunct; this content was recovered via the Wayback Machine and is archived here as a primary source for Noisebridge history.
⮡ Original URL: https://discuss.noisebridge.info/t/testing-new-donate-server/1013
📦 Verify on Wayback Machine
📅 Archived: 2019-07-24
🏷 Original category: Uncategorized

Testing new donate server

[edit | edit source]

rando

Sup everyone.

The previous donate server was decommissioned and we’re moving donate to a server under our control. We need people to test the new instance. I’ve done extensive testing (and of course there is unit test coverage) but it’s not the same as getting some good black-box testing.

Please use the stripe testing cards:


     stripe.com
 
 
   

Testing | Stripe

[edit | edit source]

Online payment processing for internet businesses. Stripe is a suite of payment APIs that powers commerce for businesses of all sizes.





There is a testing instance here:

test-donate.noisebridge.net

Please do all combinations of things as you can.

Logging is on, but in some cases you might get a traceback. if you can copy it and post it, that would be great. If you know the combination of inputs which caused the issue, and you can reproduce it, including that information is amazing.

The input data just has to be sane, it doesn’t need to be real, e.g. the email address just needs a@b.c format.

we really want to cut over to production on Thursday, so the more testing we can do by that would be very helpful. If you have any questions or issues, let me know.

Thank you!


Paul_H __

[edit | edit source]

Thanks for pushing forward on this Matt!

I just tried to make a test donation and go an error.

This is the error:

Internal Server Error

[edit | edit source]

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

Edit: 500 Error

Edit:

More detail: I tried a custom $2 donation with credit card




rando

Thanks!

I see in the logs that an error was thrown from using a real card. Apparently we can only use the test stripe cards for testing.

I buried the test card info in my post, I’m going to highlight it.

But, that error was not handled properly, which is why you got the error 500. I’ll fix that error catching tomorrow.

edit: oh, found another bug in that log too, a more important one. Thanks!!


Paul_H __

[edit | edit source]

Ah, just tried the standard $10 donation to the general fund with a test card and it all went through ok.

Thanks for getting this going again Matt!

$2 custom donation also works!




Julee2019-06-23

Hiya, I just got a 500 error as well when using a number from the testing cards page with the rest of the inputs made up – because not specified on that page.

CC info:

4000000000003220

12/2019

123

Email:

(my personal email address)

Name:

Test1 Julee


Paul_H _2019-06-23_

[edit | edit source]

I tried to donate $4,000,000 using the test card but got an error:

Internal Server Error

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

I managed to test donate up to $100,000 which I imagine is the most we can hope for through Stripe anyway… At that point, getting the money without paying insane stripe fees would be better.




kap2019-06-23

Should this page work? Or not yet…

https://test-donate.noisebridge.net/projects/




rando2019-06-24

Thanks Julee,

Logged issue #12 for this


     github.com/noisebridge/python-nb-donate
 
 
   [https://github.com/marcidy 

]

Issue: 3D Secure card throws CardError

[edit | edit source]

opened by marcidy on 2019-06-24



4000000000003220 TypeError: CardError(message='Your card was declined. This transaction requires authentication.', param=None, code='authentication_required', http_status=402, request_id='req_QUYBbcq2GW6OC3') is not JSON serializable Why am I trying to...




rando2019-06-24

Thanks Paul,

Indeed $1m seem to be the limit.

TypeError: InvalidRequestError(message=‘Amount must be no more than $999,999.99’, param=‘amount’, code=‘amount_too_large’, http_status=400, request_id=‘req_FB6kWyucCgRy7b’) is not JSON serializable

However, you shouldn’t have gotten the server error. That happened because of the same issue Julee faced where there is an attempt to serial the CardError which throws the Type Error. That will be fixed as part of #12 as well.




rando2019-06-24

It’s “technically” working as designed.

We haven’t migrated the old database yet. The data in the database is backed up, but the project functionality will be restored after the donation taking is done.

The logic is there, I prefer to put minimum functionality into production first, then enhance it after a quiet period. Once taking donations and subscriptions is back, old features will come back and some new features will be added.