Oytun @ MotaWord
Oytun @ MotaWordā€¢11mo ago

[2m2023-11-28T12:49:36.633916Z[0m [

2023-11-28T12:49:36.633916Z  INFO request: windmill_api::tracing_init: response latency=406 status=200 method=GET uri=/api/w/motaword/embeddings/query_resource_types?text=given%20an%20array%20of%20projects%20and%20a%20single%20project%2C%20remove%20the%20single%20project%20from%20the%20projects%20array%20by%20project%20ID&limit=3 username="oytun" email="oytun@motaword.com" workspace_id="motaword" 2023-11-28T12:49:36.741089Z ERROR request: windmill_common::error: error="Sql error: no rows returned by a query that expected to return at least one row" method=POST uri=/api/w/motaword/openai/proxy/chat/completions username="oytun" email="oytun@motaword.com" workspace_id="motaword" 2023-11-28T12:49:36.741133Z  INFO request: windmill_api::tracing_init: response latency=2 status=400 method=POST uri=/api/w/motaword/openai/proxy/chat/completions username="oytun" email="oytun@motaword.com" workspace_id="motaword"
6 Replies
Oytun @ MotaWord
Oytun @ MotaWordā€¢11mo ago
sorry for the encoding šŸ˜¦
rubenf
rubenfā€¢11mo ago
no worries @Hugo could you take a look, it's on the /proxy/chat/completions endpoint, we are doing a fetch_one when we should do a fetch_optional + clearer error message
Oytun @ MotaWord
Oytun @ MotaWordā€¢11mo ago
ā¤ļø is there something to do on my end to get rid of it for now? i wonder what i deleted for "no results" experience
rubenf
rubenfā€¢11mo ago
so most likely this is failing:
SELECT value
FROM resource
WHERE path = $1 AND workspace_id = $2
SELECT value
FROM resource
WHERE path = $1 AND workspace_id = $2
can you check if you didn't move the resource that you set in your workpace settings ? so check what resource is set in workspace settings, then check in your resources page if it's actually there at the same path
Oytun @ MotaWord
Oytun @ MotaWordā€¢11mo ago
perfecto, will do now YAY! ā¤ļø @rubenf šŸ˜— i had indeed renamed the openai resource
rubenf
rubenfā€¢11mo ago
@Hugo we just need fetch_optional on second query and error optional with an error message that says the resource probably got moved and we expected it at path X