Anyone else getting a cannot read property split o...
# orm-help
m
Anyone else getting a cannot read property split of undefined on prisma deploy?
e
ERROR: GraphQL Error (Code: 403) ?
m
thats the error i was getting before!
d
If you are using VSCode Prisma GraphQL extension, then that had the issue (with version
0.1.6
), can you confirm? Updating that to
0.1.7
should fix it for you.
0.1.6
was sending a lot of requests to our servers and your IP got blocked. If you still run into issues please DM me.
j
Im getting the same issue but not using VSCode Prisma GraphQL extension
@divyendu
Copy code
TypeError: Cannot read property 'split' of undefined
    at getWorkspaceFromPrivateOrigin (/snapshot/cli/node_modules/prisma-yml/src/utils/parseEndpoint.ts:21:23)
    at Object.parseEndpoint (/snapshot/cli/node_modules/prisma-yml/src/utils/parseEndpoint.ts:53:21)
    at PrismaDefinitionClass.get [as cluster] (/snapshot/cli/node_modules/prisma-yml/src/PrismaDefinition.ts:132:13)
    at PrismaDefinitionClass.getClusterName (/snapshot/cli/node_modules/prisma-yml/src/PrismaDefinition.ts:284:17)
    at PrismaDefinitionClass.validate (/snapshot/cli/node_modules/prisma-yml/src/PrismaDefinition.ts:138:30)
    at PrismaDefinitionClass.<anonymous> (/snapshot/cli/node_modules/prisma-yml/src/PrismaDefinition.ts:63:12)
    at step (/snapshot/cli/node_modules/prisma-yml/dist/PrismaDefinition.js:32:23)
    at Object.f [as next] (/snapshot/cli/node_modules/prisma-yml/dist/PrismaDefinition.js:13:53)
    at fulfilled (/snapshot/cli/node_modules/prisma-yml/dist/PrismaDefinition.js:4:58)
d
Can you please share your prisma CLI version and when do you run into this error? Can yo try to update to the latest version?
j
$ prisma deploy
version
prisma/1.28.0
c
I have the same issue. Came back to this project after a few months. Just upgraded all my dependencies, not using VSCode, tried with and without dotenv. 403s every time.
Copy code
$ PRISMA_ENDPOINT=<https://us1.prisma.sh/.../.../dev> prisma deploy

ERROR: GraphQL Error (Code: 403)

{
  "error": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"<http://www.w3.org/TR/html4/loose.dtd\>">\n<HTML><HEAD><META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=iso-8859-1\">\n<TITLE>ERROR: The request could not be satisfied</TITLE>\n</HEAD><BODY>\n<H1>403 ERROR</H1>\n<H2>The request could not be satisfied.</H2>\n<HR noshade size=\"1px\">\nRequest blocked.\n\n<BR clear=\"all\">\n<HR noshade size=\"1px\">\n<PRE>\nGenerated by cloudfront (CloudFront)\nRequest ID: pCz3_HlRr_elDaaUapVZyzwHCha2XVfSn80PXZYWEs4OinCjKeCn7A==\n</PRE>\n<ADDRESS>\n</ADDRESS>\n</BODY></HTML>",
  "status": 403
}

Get in touch if you need help: <https://www.prisma.io/forum/>
To get more detailed output, run $ export DEBUG="*"
d
Can you please DM me your IP address? and also the output of the following command -
code --list-extensions
, Thanks!