#nukesforbreakfast_error

1 messages ¡ Page 1 of 1 (latest)

tired anchorBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always 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/1437308928395444327

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

stray solar
#
{
  "ApiEndpoint": "https://api.stripe.com/v1/invoiceitems/",
  "Method": "POST",
  "Authentication": {
    "ConnectionArn": "redacted"
  },
  "Headers": {
    "content-type": "application/x-www-form-urlencoded",
    "Stripe-Account": "acct_1SRnBlBgnounAZrB",
    "Idempotency-Key": "e8a61661-861b-4669-b11b-dc12ccb10724-munipal.billing-and-payment-services.billing-apibe58f273-5619-a53c-043c-876e7f210dc3-CreateInvoiceItem"
  },
  "Transform": {
    "RequestBodyEncoding": "URL_ENCODED"
  },
  "RequestBody": {
    "customer": "cus_TOaMtF5wURW0bU",
    "subscription": "sub_1SRnBpBgnounAZrBimve0vRS",
    "amount": 38038,
    "currency": "usd",
    "description": "False alarm number 1",
    "metadata": {
      "alarm_id": "alarm_28736da9e53b4ed9b7b109e09fa3720a",
      "alarm_system_id": "alarmsystem_SVXr9BQ27rfdbvHSgj74SJ4EIFi",
      "alarm_user_id": "alarmuser_jMvznzpt4hFwpO9OIWOaChc6Oea",
      "jurisdiction_id": "org_p47VS0cKnqnDwFZWWdsgALnEJpa"
    },
    "period": {
      "start": 1762306905538,
      "end": 1762308673382
    }
  }
}
#

last attempt that failed was at 2025-11-10T04:59:10.428Z

#

is there a way for you to see logs on your side that I can't see in my dashboard?

south mauve
#

Hey! do give me some time to take a look at this!

stray solar
#

Successful attempts with CURL:

  • req_BB2xroPWLSXQd1
  • req_tLHfh2iIOLcg9M
south mauve
#

I dont see any attempt made at 2025-11-10T04:59:10.428Z, so there could be a chance where that request did not hit stripe's servers to begin with.

#

Do give me some more time to investigate this

stray solar
#

is there some request validation layer that doesn't log requests if they're malformed?

south mauve
#

We do log for 400 Bad request errors, which i see that one was fired at 2025-11-10 05:04:52

#

But you are saying that from your StepFunction request, it received a 404 error, am I right?

#

Could you provide a screenshot of that 404 error message?

Because there is no 404 error request that can be found from your dashboard

stray solar
#

that's what it's telling me.

#

but it has a limitation where it doesn't show me the response body of a failed request.

#

before I engage AWS support, I wanted to gather as much ammunition as possible to help get them quickly looking at the right issue.

#

so if there are any logs available on the Stripe side it would be helpful.

#

I think I just figured it out.

#

is the URL supposed to have a trailing slash or not when creating the invoice item?

#

https://api.stripe.com/v1/invoiceitems/ or https://api.stripe.com/v1/invoiceitems?

south mauve
#

if it's just the retrieval of the InvoiceItems, then no trailing dash is needed

#

Ifs it's to retrieve a specific Invoice item a trailing dash AND an ID is needed

#

for e.g.
https://api.stripe.com/v1/invoiceitems/ii_xxx

stray solar
#

this is a POST to create a new invoice item

south mauve
#

It is a Retrieve an Invoice Item (GET) request

stray solar
south mauve
#

Right, for a create request (POST) it should look like this then:
cURL example

curl https://api.stripe.com/v1/invoiceitems \ -u "sk_test_xxx" \ -H "Stripe-Version: 2025-10-29.preview" \ -d customer=cus_xxx \ -d "pricing[price]"=price_xxxx

#

without a trailing dash

stray solar
#

ok, so that's probably the issue. Let me check

#

yep, that was the problem.