You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When trying to fix #33 the Outerbase API does not return any errors. I'm specifically working with an API key that is attached to a Cloudflare D1 interface.
Outerbase API said {
success: true,
response: {
query: 'update table egg where egg = "egg"',
results: { schema: false, items: [], count: 0 }
}
}
I do not have a table called egg and this query should have issues. It also seems to be confusing because there is a success:true but the status code 200 should already let us know that it was OK.
letjson=awaitresponse.json()leterror=nullconsole.log('Outerbase API said',json)
import{OuterbaseConnection}from'./src/connections/outerbase'import{Outerbase}from'./src/client'constconnection=newOuterbaseConnection({apiKey: 'YOUR-API-KEY-HERE'})constouterbase=Outerbase(connection);(async()=>{constresponse=awaitouterbase.queryRaw('update table egg where egg = "egg"')console.log('Response from IIFE',response)})()
Expected behavior
I would expect Outerbase to let me know there is an error in my query but it silently fails.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
N/A
Smartphone (please complete the following information):
N/A
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
When trying to fix #33 the Outerbase API does not return any errors. I'm specifically working with an API key that is attached to a Cloudflare D1 interface.
I do not have a table called
egg
and this query should have issues. It also seems to be confusing because there is asuccess:true
but the status code200
should already let us know that it was OK.To Reproduce
Steps to reproduce the behavior:
Update
outerbase.ts
to console log the response from thequery
function.https://github.com/outerbase/sdk/blob/main/src/connections/outerbase.ts#L126-L128
Expected behavior
I would expect Outerbase to let me know there is an error in my query but it silently fails.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
N/A
Smartphone (please complete the following information):
N/A
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: