EdgiestNickel89
EdgiestNickel89
CDCloudflare Developers
Created by EdgiestNickel89 on 11/4/2023 in #workers-help
Initializing
I did and it said it requires 3 arguments but only 2 were given. The 3 refering to request, env and ctx
37 replies
CDCloudflare Developers
Created by EdgiestNickel89 on 11/4/2023 in #workers-help
Initializing
I was doing that first but when i was calling fetch() to make a POST request to the webhook it was trying to call itself
37 replies
CDCloudflare Developers
Created by EdgiestNickel89 on 11/4/2023 in #workers-help
Initializing
thanks
37 replies
CDCloudflare Developers
Created by EdgiestNickel89 on 11/4/2023 in #workers-help
Initializing
So how do I get it?
37 replies
CDCloudflare Developers
Created by EdgiestNickel89 on 11/4/2023 in #workers-help
Initializing
addEventListener('fetch', event => {
event.respondWith(eventHandler(event));
});
async function eventHandler(event) {
const env = event.env;
addEventListener('fetch', event => {
event.respondWith(eventHandler(event));
});
async function eventHandler(event) {
const env = event.env;
37 replies
CDCloudflare Developers
Created by EdgiestNickel89 on 11/4/2023 in #workers-help
Initializing
I ended up just not using an environment variable. yeah I was using addEventListener to get the event and using event.env
37 replies
CDCloudflare Developers
Created by EdgiestNickel89 on 11/4/2023 in #workers-help
Initializing
Im getting it with event.env.webhook
37 replies
CDCloudflare Developers
Created by EdgiestNickel89 on 11/4/2023 in #workers-help
Initializing
The error message is: Cannot read properties of undefined (reading 'webhook') I have a secret called webhook
37 replies
CDCloudflare Developers
Created by EdgiestNickel89 on 11/4/2023 in #workers-help
Initializing
And for some reason it says my worker has 71 requests
37 replies
CDCloudflare Developers
Created by EdgiestNickel89 on 11/4/2023 in #workers-help
Initializing
Sorry I forgot to turn off ping
37 replies