Hello, I tried to use Prisma Data Proxy from AWS-L...
# orm-help
f
Hello, I tried to use Prisma Data Proxy from AWS-Lambda but I am getting a https://www.prisma.io/docs/concepts/components/prisma-data-platform#p5002 error, url looks fine to me (prisma://aws-eu-central-1.prisma-data.com/?api_key=ABC), so I wonder what is the cause for this
n
Hey Friedrich 👋 thanks a lot for raising this! The best place to get support for any issues with the Data Platform is via Intercom directly on the site. (Nonetheless, I’m forwarding your request to the team so that they can look into it already).
f
will do, thanks for pointing out
j
Hey @Friedrich Mäckle, is there any error message?
It should be pretty descriptive, I see the following options in code: • Could not parse URL of the datasource • Datasource URL should use prisma:// protocol • No valid API key found in the datasource URL
Also - what version of
prisma
and
@prisma/client
are you using?
f
I just noticed that I cannot set process.env['DATABASE_URL'] and then create a new client, somehow the environment variable is picked up already when requiring the module
The thing is I do load the connection string from a configuration system (AWS Systems Manager Parameter Store) and then create the client in an AWS Lambda function. I thought I could simply set the environment variable and then create a client but it seems it does not work this way
f
thank you did not find that when I searched for
This does not work for me (seems obvious that it should work) but it does not replace the database_url. Some context: I do have my own package where I do
export * from '@prisma/client';
@Jakub I guess this really is a bug: https://github.com/prisma/prisma/issues/11458