#juju-chew-vacca_api

1 messages ¡ Page 1 of 1 (latest)

shy fernBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1259980247303192629

📝 Have more to share? Add details, code, screenshots, videos, etc. below.

warm swan
#

Please don't share any secret keys here

wanton robin
#

100%

warm swan
#

If you hard code keys into your code, do your requests work?

#

(this is assuming you're using environment variables otherwise)

wanton robin
#

@viscid jacinth is who i am working with he is an active developer, can you add him to this thread

viscid jacinth
#

Hi roadrunner

#

So, the application he is using is called Invoice Ninja

#

I have stripe as well. And on a call with him right now. I created some temp keys for one of my businesses and had him try them out on the app (which I use as well) and they validated. howeever, his keys are not validating. '

#

@warm swan ?

warm swan
#

By temp keys, do you mean restricted API keys?

#

By not validating, what kind of error are you getting?

viscid jacinth
#

no. I created standards. Then had him test then deleted.

warm swan
#

What's the error he sees?

#

@viscid jacinth Do you still need help?

viscid jacinth
#

sorry, I was afk for a sec

#

Invalid keys is what it is saying

warm swan
#

Do you have a screenshot? Where exactly do you see invalid keys?

#

(Please don't share any actual secret keys in your screenshot)

viscid jacinth
#

of course

#

it is invalid.

warm swan
#

This isn't really helpful to investigate, I have no idea what you're looking at or where you see this message

viscid jacinth
#

I am asking juju to provide screen shot

#

But basically ithe app tries to authenticate the keys. and it says njo

#

I give him my keys and it works.

#

So I guess the question should really be.. does the account need to be fully validated before the keys will even work?

warm swan
#

You're using keys that begin with sk_test and pk_test or something else?

viscid jacinth
#

of course

wanton robin
viscid jacinth
#

so when I send him keys .. from mine and he checks it's no problem.

#

so I believe it's an issue that his account still needs to finalize verification?

#

Never had this issue in the past. most of the time. Can use dev API keys. just can't get payouts until account is validated.

warm swan
#

Can you share your Stripe account ID? It should begin with acct_

wanton robin
#

acct_1PFh9DKK6fiVeSs5

warm swan
#

I was hoping to see some logs that show what InvoiceNinja is trying to do when you click that "Check Credentials" button

#

I think you'll need to talk to InvoiceNinja about this. I noticed you're using a live secret key that ends in k78C to retrieve customers and that works fine

viscid jacinth
#

it was old that he was talking about that worked and njow al of the sudden not

#

So the question really remains.

#

Because his account is in review is that the reason why the api keys do not work?

warm swan
#

No, that shouldn't happen

viscid jacinth
#

it seems like such

#

because my keys work from my stripe

#

but his do not.. I mean all he is doing is changing 2 keys

#

pk and sk

#

use mine.. work.. use his no

warm swan
#

I see there were other calls to retrieve customers earlier today that used the key ending in 1fuj and that worked fine

#

You can rule out an issue with the keys if you create a customer using cURL

viscid jacinth
#

happy to give me acct id if you want ot hceck

warm swan
#

or make a call to get a list of customers with the live key, also using cURL. If we can rule out an issue with the keys, then it's something you'll need to talk to InvoiceNinja about

viscid jacinth
#

ok let me go check curl

#

with his accounty

warm swan
#

@viscid jacinth I don't see any live cURL requests yet

shy fernBOT
viscid jacinth
#

yeah testing somethingj else

#

it looks like it when I do the validate creds through app

#

in logs it shows it's making a custmers request

#

intewresting

viscid jacinth
#

so everything said it didn't work but it worked lol

sacred gulch
#

Happens lol

viscid jacinth
#

yeah.. interesting enough I try that one endpoint fails burt all other endpoints wokr lol

#

validation = s**t lol

#

thank you all

#

forgot about the logs that helped troubleshoot