Add response headers for error handling in uploadFileHandler#397
Open
arodriguezvaz wants to merge 1 commit into
Open
Add response headers for error handling in uploadFileHandler#397arodriguezvaz wants to merge 1 commit into
arodriguezvaz wants to merge 1 commit into
Conversation
|
NeonValtokari
approved these changes
Jun 2, 2026
Jdallos
approved these changes
Jun 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Added missing headers on error handling, hope this makes the home lambda work now
now i'm getting this error
Access to fetch at 'https://sck28bg5v9.execute-api.eu-north-1.amazonaws.com/articles/import-document' from origin 'http://localhost:5173' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.Understand this error
runtime.ts:182 POST https://sck28bg5v9.execute-api.eu-north-1.amazonaws.com/articles/import-document net::ERR_FAILED 404 (Not Found)
(anonymous) @ runtime.ts:182
(anonymous) @ runtime.ts:118
await in (anonymous)
(anonymous) @ ArticleApi.ts:324
await in (anonymous)
(anonymous) @ ArticleApi.ts:340
(anonymous) @ s3-file-utils.ts:92
await in (anonymous)
(anonymous) @ create-article-form.tsx:228
callCallback2 @ chunk-V5LT2MCF.js?v=f1c311e9:3674
invokeGuardedCallbackDev @ chunk-V5LT2MCF.js?v=f1c311e9:3699
invokeGuardedCallback @ chunk-V5LT2MCF.js?v=f1c311e9:3733
invokeGuardedCallbackAndCatchFirstError @ chunk-V5LT2MCF.js?v=f1c311e9:3736
executeDispatch @ chunk-V5LT2MCF.js?v=f1c311e9:7016
processDispatchQueueItemsInOrder @ chunk-V5LT2MCF.js?v=f1c311e9:7036
processDispatchQueue @ chunk-V5LT2MCF.js?v=f1c311e9:7045
dispatchEventsForPlugins @ chunk-V5LT2MCF.js?v=f1c311e9:7053
(anonymous) @ chunk-V5LT2MCF.js?v=f1c311e9:7177
batchedUpdates$1 @ chunk-V5LT2MCF.js?v=f1c311e9:18941
batchedUpdates @ chunk-V5LT2MCF.js?v=f1c311e9:3579
dispatchEventForPluginEventSystem @ chunk-V5LT2MCF.js?v=f1c311e9:7176
dispatchEventWithEnableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay @ chunk-V5LT2MCF.js?v=f1c311e9:5478
dispatchEvent @ chunk-V5LT2MCF.js?v=f1c311e9:5472
dispatchDiscreteEvent @ chunk-V5LT2MCF.js?v=f1c311e9:5449Understand this error
installHook.js:1 Error importing playbook: FetchError: The request failed and the interceptors did not return an alternative response
at ArticleApi.fetchApi (runtime.ts:197:23)
at async ArticleApi.request (runtime.ts:118:26)
at async ArticleApi.importDocumentRaw (ArticleApi.ts:324:26)
at async ArticleApi.importDocument (ArticleApi.ts:340:26)
at async importPlaybook (s3-file-utils.ts:92:18)
at async handleImport (create-article-form.tsx:228:31)Caused by: TypeError: Failed to fetch
at ArticleApi.fetchApi (runtime.ts:182:62)
at ArticleApi.request (runtime.ts:118:37)
at async ArticleApi.importDocumentRaw (ArticleApi.ts:324:26)
at async ArticleApi.importDocument (ArticleApi.ts:340:26)
at async importPlaybook (s3-file-utils.ts:92:18)
at async handleImport (create-article-form.tsx:228:31)