Paul Shriner
Paul Shriner
CDCloudflare Developers
Created by Paul Shriner on 12/8/2023 in #hyperdrive
debugging client.connect()
I had some link library code, both stuff I wrote and code that was imported. So no, but let me see if I can recreate the conditions.
10 replies
CDCloudflare Developers
Created by Paul Shriner on 12/8/2023 in #hyperdrive
debugging client.connect()
Nevermind, apparently by stripping everything out of the worker it started working.
sigh.... Sorry for wasting your time.
10 replies
CDCloudflare Developers
Created by Paul Shriner on 12/8/2023 in #hyperdrive
debugging client.connect()
AccountID: e909090c243c668f1acf40bdeefbe04d ScriptID: linkprocessing
10 replies
CDCloudflare Developers
Created by Paul Shriner on 12/8/2023 in #hyperdrive
debugging client.connect()
I have been able to print client.connect in the past. It is a sniff test. I have not tested it the other workers in this case. 1. Yes all are connecting to the same 2. The third worker does not work. 3. I call client.connect and it fails silently
10 replies
CDCloudflare Developers
Created by Paul Shriner on 12/8/2023 in #hyperdrive
debugging client.connect()
All are referencing 8.11.3
10 replies
CDCloudflare Developers
Created by Paul Shriner on 12/8/2023 in #hyperdrive
debugging client.connect()
it appears that client.connect is null, but I don't know why. When I stringify client, I receive a value back, when I try to print client.connect, it is null.
try{
const client = new Client({ connectionString: env.REWARDS.connectionString });
console.log(JSON.stringify(client))
console.log(JSON.stringify(client.connect))

} catch(ex){
console.log(ex)
}
try{
const client = new Client({ connectionString: env.REWARDS.connectionString });
console.log(JSON.stringify(client))
console.log(JSON.stringify(client.connect))

} catch(ex){
console.log(ex)
}
And here are the results from the log.
{
"message": [
"{\"domain\":null,\"_events\":{}, ....}"
],
"level": "log",
"timestamp": 1702043001116
},
{
"message": [
null
],
"level": "log",
"timestamp": 1702043001116
},
{
"message": [
"{\"domain\":null,\"_events\":{}, ....}"
],
"level": "log",
"timestamp": 1702043001116
},
{
"message": [
null
],
"level": "log",
"timestamp": 1702043001116
},
You can see that the client printed out (truncated for space here) but the client.connect method was null.
10 replies
CDCloudflare Developers
Created by danboyle8637 on 12/6/2023 in #workers-help
Best Logging Solution for Small App
Also curious on the reccommendation
3 replies