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
It's example of a simplest interaction, but all seems like all durable calls ends up with {
"status": 500,
"error": "Illegal invocation"
}
In User class
....
function test() {
return 'Justa test...'
}
...
and everything exports without errors (has all defined functions, etc)
and everything cooked by your tutorial... but
Sorry i'm stuck here, any ideas??
The text was updated successfully, but these errors were encountered:
So, i have tried just your example - Counter, as additional DO and sub-router ...
Result is the same :(( {
"status": 500,
"error": "Illegal invocation"
}
Without withDurables it's just Failed to execute 'get' on 'DurableObjectNamespace': parameter 1 is not of type 'DurableObjectId'." , so withDurables - works, but with some troubles....
Hello! Trying to implement UsersAPI ...
export interface UserAPI {
signIn(user: SignInputSchema): ErrorResponse | SuccessResponse
getInfo(): UserSchema | undefined
getLogins(): UserLoginSchema[]
test(): any
}
export interface Env {
User: DurableObjectNamespaceExt
}
router
.all('*', withDurables)
.get('/auth/test', async (request: IRequest, { User }: Env) => {
return User.get('test').test()
})
It's example of a simplest interaction, but all seems like all durable calls ends up with {
"status": 500,
"error": "Illegal invocation"
}
In User class
....
function test() {
return 'Justa test...'
}
...
and everything exports without errors (has all defined functions, etc)
and everything cooked by your tutorial... but
Sorry i'm stuck here, any ideas??
The text was updated successfully, but these errors were encountered: