Hey @kwatson ,
I am trying a to make a request in API Controller. Even though i have an authorized bearer key i am getting a “user missing” error on orders controller. I traced that error back and i realized current_user method in ApiAuth concern is the issue.
curl --location --request POST 'http://45.11.97.196:3005/api/orders' --header 'Authorization: Bearer MTwZPjGgQbuzeIMXS5dcqIg6ZniZzjf_9Sqy4_8BREE' --header 'Content-Type: application/json' --data-raw '{
"order": {
"project_name": "Project 1",
"skip_ssh": true,
"location_id": 1,
"containers": [
{
"image_id": 60,
"params": [
{
"key": "key1",
"value": "value1"
}
]
}
]
}
}'
{"errors":["Missing user"]}
I appreciate if we can figure out that problem together