Prisma1: "Not authorized. Please provide a proper 'Authorization' header", when deleting public service

Created on 21 Mar 2018  路  3Comments  路  Source: prisma/prisma1

Bug Report

Current behavior

Deleting a service from the development cluster is not possible:

Deleting service import-id-missing@dev !

ERROR: Not authorized. Please provide a proper 'Authorization' header

{
  "data": null,
  "errors": [
    {
      "message": "Not authorized. Please provide a proper 'Authorization' header",
      "locations": [
        {
          "line": 2,
          "column": 11
        }
      ],
      "path": [
        "deleteService"
      ]
    }
  ],
  "status": 200
}

Reproduction

npm install -g [email protected]
prisma init test # choose minimal
cd test
prisma deploy
prisma delete

Note: prisma reset works as expected.

Expected behavior?

The service should be deleted without a problem

bu2-confirmed arecli

All 3 comments

Anyone getting here from googling the issue title might also be getting the message from using prisma deploy

I had to prisma login then it got hung up, I refreshed the browser and canceled the login from the console. Then I did the prisma login again and I was able to get the console to authenticate and prisma deploy without a problem.

The public service deletion is fixed. @c316 can you reproduce the problem and create a separate issue for this? Thanks!

@timsuchanek I haven't seen the problem again, but if it happens again then I'll create a reproduction of it and open a new issue.

Thanks

Was this page helpful?
0 / 5 - 0 ratings