Open jrrbru opened 4 years ago
Are you using yarn
or npm
? It might be worth using yarn
and using this specific lockfile just in case one of the dependencies broke something.
Also you seem to be using pg-native
; I recommend against using pg-native
- it's normally slower than the JS version and harder to trace.
Hi Benjie. Thanks for getting back to me. I'm using yarn so it should be using the lockfile in the repo.
How do I tell it not to use pg-native? I don't think I changed anything around that dependency.
Finally, would this have anything to do with building the lambda on Windows?
I'm afraid I don't know the answers to your questions. It definitely worked last time I tried it, but that was months ago.
We have this which "forces native":
But that should be overridden by this, which uses the JS client only:
It looks, however, like your one is referencing pg/lib/native/client.js
rather than pg/lib/native/index.js
. Not sure if this is relevant.
I'm trying to get a manually-configured Lambda up using this example. When I hit the gateway API endpoint, I get this error in the CloudWatch logs:
My postgraphileOptions.js are as follows:
I'd appreciate any help anyone could give.