gorules / zen

Open-source Business Rules Engine for your Rust, NodeJS, Python or Go applications.
https://gorules.io
MIT License
770 stars 74 forks source link

keep getting "projectAccessToken.invalid" #136

Closed GohKianSeng closed 6 months ago

GohKianSeng commented 6 months ago

Hello, i created project tokens. but when i postman the shipping demo api buy always 401

below is the curl cmd

curl --location 'localhost:9080/api/projects/81513662-22ac-4f8a-a20d-852dc0f538db/evaluate/E-commerce%20Shipping%20Fees.json' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer awcfTOFFWOFvo93b8wLCwXHX' \ --data '{ "context": { "customer": { "age": 38, "country": "US", "tier": "gold", "totalSpend": 1500 }, "cart": { "totals": 283.3, "products": [ { "id": 51, "name": "Sample product 1", "price": 54.2, "quantity": 1 }, { "id": 52, "name": "Sample product 2", "price": 114.55, "quantity": 2 } ] } }, "trace": false }'

image image