#harinth-internal-error

1 messages ยท Page 1 of 1 (latest)

viscid bridge
#

Hi there ๐Ÿ‘‹ sorry to hear you're running into problems. Just to clarify, the request to Stripe is returning an internal server error, or is the error occurring on your server?

scarlet mortar
#

It works till the second line. But error happens at the 3rd line

#

This code was working earlier

viscid bridge
#

To clarify, the error happens at the third line in that inner block, or the third line of all the code shown?

scarlet mortar
#

Third line of all the code shown

viscid bridge
#

Gotcha, so the call to Stripe, and what is the error that you're encountering?

scarlet mortar
#

I put the code in try catch and no error showing

#

It's an old code, but it was working

viscid bridge
#

Earlier you said you saw an Internal Server Error, can you clarify where you saw that?

#

When you say you used an old version of Stripe, are you referring to an old version of the Stripe PHP library?

scarlet mortar
#

Yes

#

Exactly

#

Internal server error happens only because of that 3rd line

#

It's working just above

viscid bridge
#

There was a change made to our PHP library where we changed the approach it uses (looking for the exact term and release version where that happened).

#

But while I look that up, can you try using these two requests to create a source and then attach it to your customer to see if that does what you're expecting?
https://stripe.com/docs/api/sources/create?lang=php
https://stripe.com/docs/api/sources/attach?lang=php

scarlet mortar
#

I am not using StripeClient

#

I am including stripe-44/init.php to include Stripe library

#

At the start of my function

#

There is nothing showing in catch, but the first line shows a valid customer

pliant prairie
#

What is the error your encounter? and API error or an SDK error?

#

can you share a request ID? It seems like something must have changed.

scarlet mortar
#

Means sk_ right?

pliant prairie
#

no, a request id like req_123 -- never share secret keys with anyone, even Stripe

scarlet mortar
#

Nothing works after first line

#

So unable to find request id

#

In short, first line works

#

But not second line

#

This line also not working

pliant prairie
#

What do you mean "doesnt work"? i dont see any errors

#

whats your account id?

#

acct_1234

#

I can look for recent request errors

scarlet mortar
#

acct_1Fs2fABgi4gXHTOy

pliant prairie
scarlet mortar
#

I guess, it's a different issue from our side, because it's working for other accounts and may be I am using different SK_Test

#

I am sorry

#

Thank you so much

pliant prairie
#

Ah, nice! is it all working now?

scarlet mortar
#

Yes

pliant prairie
#

Excellent ๐Ÿ™‚