hashicorp-demoapp / product-api-go

Products API written in Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: status: 401, body: token contains an invalid number of segments

JanardhanSharma opened this issue · comments

This the code https://github.com/JanardhanSharma/get-started-with-terraform/tree/demo-module

On terraform apply getting the below error.

╷
│ Error: status: 401, body: token contains an invalid number of segments
│ 
│ 
│   with module.hashicups-module.hashicups_order.this,
│   on modules/hashicups-module/hashicups-module-demo.tf line 11, in resource "hashicups_order" "this":
│   11: resource "hashicups_order" "this" {
│ 
╵

Any idea why ?

There is another branch, https://github.com/JanardhanSharma/get-started-with-terraform/tree/demo-plan-apply, this one works fine.

I usage of modules causing this ?