Comments (12)
@tarikstafford 2.0.7
tag should fix the issue.
from stripe.
Hi @mohsinJanjua , there was a small bug in the code that i found.
If you see in Cod50298.StripeWebService.al, there is one line of code Arguments.SetRequestContent(RequestContent)
. Here it was called before setting Header "Content Type". So later, when If not CallWebService(Arguments) then
is called, it didn't had the Content-Type
set.
I also checked for API logs on stripe portal and it was sending blank JSON as request and was getting same error as mentioned above.
To fix this issue, i called Arguments.SetRequestContent(RequestContent)
after adding request header.
Not sure, how it was working fine earlier but this fixed the issue for me.
Note - Above fix is required to be applied in all functions i.e CreateCustomer, UpdateCustomer, CreateSubscription etc.
from stripe.
What was the issue?
from stripe.
@Andrewangeta I still don't know. I am trying to solve it, but closed it till I do more digging.
from stripe.
@Andrewangeta did a fresh vapor proj to test it and it's also not working so it must be an issue with the new StripeRequest being sent to the StripeAPI.
from stripe.
try body.encode(request)
this at least doesn't get an error but the content does not go through.
try request.content.encode(body, as: .urlEncodedForm)
from stripe.
@tarikstafford I know the issue. Pushing a fix now.
from stripe.
Hi Team, did we get any fix to this issue, i'm still getting same error in response from API call from Stripe.
from stripe.
@anuj-inecta What version of the provider are you running? This should of been resolved long ago.
from stripe.
Hi @anthonycastelli , thanks for revert..
Actually, we got this issue while running the App Monetization code which integrates Dynamics 365 Business Central with Stripe. Same code was working fine earlier but suddenly it started giving this error.
Lucking, after some digging yesterday, i found one bug in the code for web request call and fixed the issue.
from stripe.
Hi @anthonycastelli , thanks for revert..
Actually, we got this issue while running the App Monetization code which integrates Dynamics 365 Business Central with Stripe. Same code was working fine earlier but suddenly it started giving this error.
Lucking, after some digging yesterday, i found one bug in the code for web request call and fixed the issue.
Hi @anuj-inecta
I'm facing exactly same issue. the code for app monetization was working fine. then we upgraded to the October release of Business Central and it is now giving me this issue. Can you please tell me what exactly was the probelm? It will be a great help.
Thank you in advance.
from stripe.
Hi @mohsinJanjua , there was a small bug in the code that i found.
If you see in Cod50298.StripeWebService.al, there is one line of codeArguments.SetRequestContent(RequestContent)
. Here it was called before setting Header "Content Type". So later, whenIf not CallWebService(Arguments) then
is called, it didn't had theContent-Type
set.
I also checked for API logs on stripe portal and it was sending blank JSON as request and was getting same error as mentioned above.
To fix this issue, i calledArguments.SetRequestContent(RequestContent)
after adding request header.
Not sure, how it was working fine earlier but this fixed the issue for me.Note - Above fix is required to be applied in all functions i.e CreateCustomer, UpdateCustomer, CreateSubscription etc.
Thanks a lot, @anuj-inecta :)
from stripe.
Related Issues (20)
- Charges list request fails due to trailing / HOT 2
- Unable to prefill customer email when creating a checkout session HOT 11
- Bump to the lastest version of the Stripe-KIT that introduces Stripe Identity fixes HOT 1
- Multiple Stripe Accounts HOT 17
- Better Setup Walkthrough HOT 4
- [ ERROR ] DecodingError.keyNotFound: Value required for key 'sources.data.Index 0.client_secret' HOT 5
- Nullable Source "creation" Date HOT 5
- Documentation HOT 2
- Unable to retrieve list of customers HOT 5
- Add file upload support.
- Typo in Customer.bussinessVATId HOT 1
- URL query injection HOT 1
- Make Models Parameterizable HOT 2
- Concrete Routes Don't Allow Optional Values HOT 9
- Upcoming Invoice has no id HOT 5
- Fix Refunds for connect accounts HOT 3
- [ ERROR ] DecodingError.valueNotFound - Token issue HOT 5
- Conform StripeError to AbortError HOT 1
- Add webhooks support HOT 3
- NIO based Stripe Client HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stripe.