Cass Winfrey
12/10/2021, 2:20 PMfetch
needing to be polyfilled - but commenting out any fetch calls the issue remains, I have found https://answers.netlify.com/t/builds-started-to-fail-all-of-a-sudden/44183/16 which displays the same symptoms around serverless, auth0 and the webpack_require
message…
Really not sure where to go from here so help would be great, thanksDanny Rivadeneira
12/10/2021, 2:51 PMSam Hulick
12/10/2021, 7:19 PMCannot delete ChangeSet in status CREATE_IN_PROGRESS
❌ dev-microservices-api-users failed: The dev-microservices-api-users stack failed to deploy.
seems like it’s doing a change in the background and the sst start proc is not aware of it.
NOTE: I’m on 0.53.3, so it’s possible this was fixed in 0.53.4Tim V
12/10/2021, 7:52 PMPavan Kumar
12/11/2021, 4:32 AMnew Api
with bunch or routes. It worked fine. I have been adding new routes to it, it was fine till yesterday!
Yesterday, I added new route and that one route is throwing the error. I don't know why!!!?
So here is the example of routes which are working.
'GET /users': `${SERVICE_PATH}/users/listUsers/listUsers.handler`,
'GET /users/{userid}': `${SERVICE_PATH}/users/getUser/getUser.handler`,
'DELETE /users/{userid}': `${SERVICE_PATH}/users/removeUser/removeUser.handler`,
'PUT /users/{userid}': `${SERVICE_PATH}/users/updateUser/updateUser.handler`,
'POST /users': `${SERVICE_PATH}/users/createUser/createUser.handler`,
Now I add one more route to it. (Just to confirm i don't have bug in my handler in have used same handler as in GET /users
)
'GET /subscriptions': `${SERVICE_PATH}/users/listUsers/listUsers.handler`,
Now when I access the route GET /subscriptions
I get following error.
7a0a127b-a947-47d0-ae12-6a14d47ccb6c REQUEST pavan-someProject--AuthorizerBD825682-clNfJSVK9mGZ [packages/apps/someProject/services/gateway/auth.authorize] invoked by API GET /subscriptions
7a0a127b-a947-47d0-ae12-6a14d47ccb6c ERROR Error [TypeError]: Cannot read property 'list' of undefined
at deserializeError (/Users/pavan/MyProgs/someProject/monorepo/node_modules/@serverless-stack/cli/lib/serializeError.js:71:22)
at printLambdaResponse (/Users/pavan/MyProgs/someProject/monorepo/node_modules/@serverless-stack/cli/scripts/start.js:1457:24)
at /Users/pavan/MyProgs/someProject/monorepo/node_modules/@serverless-stack/cli/scripts/start.js:1363:7
at processTicksAndRejections (internal/process/task_queues.js:95:5)
John
12/11/2021, 2:53 PMAWSQueueService
service (857,066 requests), and I have no idea where this is coming from. It looks like it’s coming from SQS NumberOfEmtpyReceives
. Can anyone shed some light onto what’s causing this and how I can stop all these requests? This is without my app running. Apologies for the ignorance.Devin
12/12/2021, 5:09 PMDavide Ungari
12/12/2021, 9:24 PMnpx sst start
:
ENOENT: no such file or directory, open 'project/.sst/functions.jsonl'
Garret Harp
12/12/2021, 9:30 PMLouis Barclay
12/12/2021, 11:56 PMsst
APIs to work exactly the same way, except with an issue I just found. I can't figure out what's going on.
One of my API paths checks CNAMEs for some domains. Code is in screenshot. It uses a resolver from the DNS tools shipped in Node.js by default (imported like this: const { Resolver } = require("dns").promises; const resolver = new Resolver();
)
The inconsistency is that everything works in the dev API (after running npx sst start), whereas in the prod API the first CNAME is successfully found (lines 59-69), but the second CNAME is not (lines 73-82).
The error message that comes up in the prod API is as follows:
2021-12-12T23:39:44.230Z 7826077a-0951-477b-84e6-c4b9358ce4df INFO No certificate_cname Error: queryCname EBADRESP <http://_17f3ff9be4f5c70a4e0.SOME-DOMAIN.com|_17f3ff9be4f5c70a4e0.SOME-DOMAIN.com> at QueryReqWrap.onresolve [as oncomplete] (internal/dns/promises.js:167:17) { errno: 'EBADRESP', code: 'EBADRESP', syscall: 'queryCname', hostname: '<http://_17f3ff9be4f5c70a4e0.SOME-DOMAIN.com|_17f3ff9be4f5c70a4e0.SOME-DOMAIN.com>' }
Any tips on how to fix this would be appreciated! AFAIK I have not done any particular config to make my prod and dev APIs work differently.Dave Harig
12/13/2021, 12:48 PMDan Van Brunt
12/13/2021, 1:49 PMstack.resolve()
? It seems like more of an escape hatch that makes things less extensible as a construct author. No?Pavan Kumar
12/13/2021, 3:21 PMafter_deployment
hooks doesn't seems to be ideal as it runs n times
for n number of services
deployed.Edward Asquith
12/13/2021, 3:23 PMsst-env
launcher process may be a factor? I am working in Typescript.
I have tried launching using npm start
and attaching to a process, but then the debugger isn’t hitting breakpoints.
Experienced backend dev but complete newbie to React, Typescript, SST and VSCode… so apologies in advance if i’m missing something well known.Sam Hulick
12/13/2021, 3:55 PMcdk-hnb659fds-assets-*
bucket? I just realized there’s thousands of objects in there. too bad CDK doesn’t clean those up for you.. I guess I’ll slap a lifecycle rule on it to clean upSimone Gaiarin
12/13/2021, 5:48 PMnpx sst start
I get the following error:
Traceback (most recent call last):
File "/media/dataHD/development/startup/my-app/my-app/node_modules/@serverless-stack/core/src/runtime/shells/bootstrap.py", line 75, in <module>
module = import_module(args.handler_module)
File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'src.c520f1aa'
a4bf9a48-382c-4a7f-97f6-85c830a2a7a6 ERROR ModuleNotFoundError: No module named 'src.c520f1aa'
undefined
Simone Gaiarin
12/13/2021, 6:18 PMSimone Gaiarin
12/13/2021, 6:45 PMDanny Rivadeneira
12/13/2021, 8:34 PM"jest": {
"setupFiles": ["dotenv/config"]
}
but the jest that includes sst has no support for setupFilesJacob Hayes
12/13/2021, 8:40 PM@pdf-lib/fontkit
If I run directly with node it works correctly but when I go to test locally with sls invoke local...
it doesn’t appear to be pulling the package in. I get fontkit.create is not a function
and it’s as if fontkit doesn’t exist when running this wayKujtim Hoxha
12/13/2021, 9:53 PMSam Hulick
12/13/2021, 10:11 PMMischa Spiegelmock
12/14/2021, 3:05 PM~/.aws/config
? seems like no matter what profile i have selected sst always wants to use us-east-1Kujtim Hoxha
12/14/2021, 6:05 PMmkarsene
12/15/2021, 6:30 AMSam Hulick
12/15/2021, 8:25 AMat Runtime.handler (/Volumes/SuperData/Sites/reelcrafter/v2-presentation2/.sst/artifacts/3fa176ba/src/lambda.js:4066:7)
Mischa Spiegelmock
12/15/2021, 10:52 AMApp
down to various constructs (so I can use logicalPrefixedName
)? is there a way to get the “current” App
?Kujtim Hoxha
12/15/2021, 4:51 PMTim V
12/15/2021, 5:17 PMJack Fraser
12/15/2021, 5:32 PM