midnight
midnight
Explore posts from servers
SSolidJS
Created by midnight on 8/23/2024 in #support
Unexpected End of JSON Input on API Route
I have to step away for a little (prob for the best to let the mind churn on it) but thank you again for taking time to help!
32 replies
SSolidJS
Created by midnight on 8/23/2024 in #support
Unexpected End of JSON Input on API Route
I appreciate your help though! Ill keep poking at it and see what I can figure out, its been two days troubleshooting so I was starting to think it was something obvious I did.
32 replies
SSolidJS
Created by midnight on 8/23/2024 in #support
Unexpected End of JSON Input on API Route
Yeah they should be but I can add logging in to validate again against localhost. Auth resides in lambda at all times so it shouldnt change other than redirecting to localhost in dev or to the solidstart app when deployed.
32 replies
SSolidJS
Created by midnight on 8/23/2024 in #support
Unexpected End of JSON Input on API Route
Theres nothing sensitive 😅 just an email address
32 replies
SSolidJS
Created by midnight on 8/23/2024 in #support
Unexpected End of JSON Input on API Route
No description
32 replies
SSolidJS
Created by midnight on 8/23/2024 in #support
Unexpected End of JSON Input on API Route
I think the problem I am trying to understand is why does this work when running locally on my machine. Let me check something locally though
32 replies
SSolidJS
Created by midnight on 8/23/2024 in #support
Unexpected End of JSON Input on API Route
Yeah, seems like it returns a jwt encoded response for the code.
32 replies
SSolidJS
Created by midnight on 8/23/2024 in #support
Unexpected End of JSON Input on API Route
I need to edit this later to remove my info
32 replies
SSolidJS
Created by midnight on 8/23/2024 in #support
Unexpected End of JSON Input on API Route
Body is unusable: Body has already been read from the web browser and this in aws logs:
2024-08-23T16:12:57.389Z dfc39f63-261c-4b80-811f-e2b3006e2031 INFO LOGGING REPONSE Promise {
<pending>,
[Symbol(async_id_symbol)]: 628,
[Symbol(trigger_async_id_symbol)]: 567,
[Symbol(kResourceStore)]: {
event: H3Event {
__is_event__: true,
node: [Object],
web: [Object],
context: [Object],
_method: 'GET',
_path: '/auth/callback?code=eyJh...redacted...&state',
_headers: Headers {
'cloudfront-is-android-viewer': 'false',
referer: 'https://accounts.google.com/',
'x-amzn-tls-version': 'TLSv1.2',
'cloudfront-viewer-country': 'US',
'sec-fetch-site': 'cross-site',
2024-08-23T16:12:57.389Z dfc39f63-261c-4b80-811f-e2b3006e2031 INFO LOGGING REPONSE Promise {
<pending>,
[Symbol(async_id_symbol)]: 628,
[Symbol(trigger_async_id_symbol)]: 567,
[Symbol(kResourceStore)]: {
event: H3Event {
__is_event__: true,
node: [Object],
web: [Object],
context: [Object],
_method: 'GET',
_path: '/auth/callback?code=eyJh...redacted...&state',
_headers: Headers {
'cloudfront-is-android-viewer': 'false',
referer: 'https://accounts.google.com/',
'x-amzn-tls-version': 'TLSv1.2',
'cloudfront-viewer-country': 'US',
'sec-fetch-site': 'cross-site',
32 replies
SSolidJS
Created by midnight on 8/23/2024 in #support
Unexpected End of JSON Input on API Route
Ill update and deploy. I did get a typescript error that the access_token does not exist on string.
32 replies
SSolidJS
Created by midnight on 8/23/2024 in #support
Unexpected End of JSON Input on API Route
I added the "LOGGING RESPONSE` part to make it easier to find in the AWS console.
32 replies
SSolidJS
Created by midnight on 8/23/2024 in #support
Unexpected End of JSON Input on API Route
No description
32 replies
SSolidJS
Created by midnight on 8/23/2024 in #support
Unexpected End of JSON Input on API Route
Just added it, let me do a deploy since I cant replicate in dev mode
32 replies
SSolidJS
Created by midnight on 8/23/2024 in #support
Unexpected End of JSON Input on API Route
Yeah, Are you saying to add a console.log(response) in the if (response.ok) { statement?
32 replies
SSolidJS
Created by midnight on 8/23/2024 in #support
Unexpected End of JSON Input on API Route
All the variables seem to be set as expected. I added a console.log statement right below the if (response.ok) so I can see it gets all the way there but it seems to fall over at the const { access_token} = line.
32 replies
SSolidJS
Created by midnight on 8/23/2024 in #support
Unexpected End of JSON Input on API Route
It is, I validated by logging it to the console in aws cloudwatch.
32 replies
CDCloudflare Developers
Created by midnight on 8/20/2024 in #workers-help
Auto Setup Tail Worker with Pulumi for Sentry
And not just Sentry, any of the integrations' setup stored as IaC.
2 replies
SSolidJS
Created by midnight on 7/28/2024 in #support
Button to API route returns 404 but direct hit functions
I was looking through the docs but missed thie completely. this explains the exact behavior I was seeing.
5 replies
SSolidJS
Created by midnight on 7/28/2024 in #support
Button to API route returns 404 but direct hit functions
OOOHHH that makes total sense! Thank you!!!!!
5 replies
SSolidJS
Created by midnight on 7/28/2024 in #support
Button to API route returns 404 but direct hit functions
Is this because I am client side routing to the API? Adding use server does not change the behavior. If so, how to I eject out of this behavior on a per route basis?
5 replies