cris
cris
CDCloudflare Developers
Created by cris on 9/17/2024 in #pages-help
Custom name already associated ... find it and remove it. But I can't find it!
I'm going to redouble my efforts to get better at API calls. Thanks @Erisa for the link the guide. That's probably exactly what I need. And actually I just looked at the API settings page and only now realized that there's a difference between the Keys and Tokens. Helps that you pointed it out.
25 replies
CDCloudflare Developers
Created by cris on 9/17/2024 in #pages-help
Custom name already associated ... find it and remove it. But I can't find it!
That's what I was missing!
25 replies
CDCloudflare Developers
Created by cris on 9/17/2024 in #pages-help
Custom name already associated ... find it and remove it. But I can't find it!
👍 I need to spend some time learning how to run those api calls from Curl.
25 replies
CDCloudflare Developers
Created by cris on 9/17/2024 in #pages-help
Custom name already associated ... find it and remove it. But I can't find it!
{"success":false,"errors":[{"code":9106,"message":"Missing X-Auth-Key, X-Auth-Email or Authorization headers"}]}
25 replies
CDCloudflare Developers
Created by cris on 9/17/2024 in #pages-help
Custom name already associated ... find it and remove it. But I can't find it!
@Erisa For example, I tried: curl --request DELETE --url https://api.cloudflare.com/client/v4/accounts/'a3c881b.......4ae0'/pages/projects/01-com-mexicanbold --header 'Content-Type: application/json' --header 'X-Auth-Email: [email protected]'
When running this commands, I tried within {}, removing the brackets, without and with quotes or apostrophes, etc. How should they be run? Did I miss the instructions?
Another time I tried: curl --request DELETE --url https://api.cloudflare.com/client/v4/accounts/477082f5c9678c608889bd8f03f7b807/pages/projects/01-com-mexicanbold/domains/mexicanbold.com --header 'Content-Type: application/json' --header 'Authorization: Bearer a3c881b0456e1947..... Sometimes I used my Account ID' and not the API key. I don't have any API keys except Global API Key and Origin CA key.
25 replies
CDCloudflare Developers
Created by cris on 9/17/2024 in #pages-help
Custom name already associated ... find it and remove it. But I can't find it!
Really nice of you to offer so much direction. I'll definitely revisit the API calls. The instructions I saw weren't that clear (I sometimes need crystal clarity and hand-holding, lol). For example, I couldn't find the Pages API Key which was referenced in the community forum (https://community.cloudflare.com/t/that-domain-is-already-associated-with-an-existing-project/579186) and the API docs weren't that easy for me to follow: I got error messages such as "{"result":null,"success":false,"errors":[{"code":7003,"message":"Could not route to...." Thanks @andronicus.
25 replies
CDCloudflare Developers
Created by cris on 9/17/2024 in #pages-help
Custom name already associated ... find it and remove it. But I can't find it!
@Erisa Update: @andronicus found the project to which the custom name was already attached. So that was the problem. (I looked through once but had blinders on apparently.) I added the custom domain and all is working as expected. Feels great!
25 replies
CDCloudflare Developers
Created by cris on 9/17/2024 in #pages-help
Custom name already associated ... find it and remove it. But I can't find it!
@andronicus Hi. I do not (though I tried).
25 replies
CDCloudflare Developers
Created by cris on 9/17/2024 in #pages-help
Custom name already associated ... find it and remove it. But I can't find it!
Great. That's terrific. Hopefully I'll have an update soon. Take care.
25 replies
CDCloudflare Developers
Created by cris on 9/17/2024 in #pages-help
Custom name already associated ... find it and remove it. But I can't find it!
It's mexicanbold.com. Again, thanks for the help! BTW, a subdomain, shop.mexicanbold.com works.
25 replies
CDCloudflare Developers
Created by cris on 9/17/2024 in #pages-help
Custom name already associated ... find it and remove it. But I can't find it!
@Erisa Thanks for the help. I removed the CNAME that I manually added (a few hours ago).
Yes, I went through my 26 other page projects. None was using this domain. I'll chack again. Is there a way to run a search?
When I visit my DNS page , at the top, it gives recommended steps to complete the zone setup. I'm prompted to "Add an A, AAAA or CNAME record for your root domain so that [it] will resolve".
25 replies
CDCloudflare Developers
Created by cris on 7/5/2023 in #pages-help
/functions directory alternative?
Great. Thanks for that. Something to look into. Thanks again for your help.
22 replies
CDCloudflare Developers
Created by cris on 7/5/2023 in #pages-help
/functions directory alternative?
How would I call a binding for D1 if I don't have the app.d.ts file? Right now it might be easier to just use typescript.
22 replies
CDCloudflare Developers
Created by cris on 7/5/2023 in #pages-help
/functions directory alternative?
When I create a sveltekit app, I get three choices: JsDoc, TS, or plain JS. With plain JS, there is no app.d.ts file while with the other two there are. The documentation for Cloudflare functions (both on Cloudflare's site and Sveltekit's) is that you have to add environmental variables to app.d.ts, e.g. the interface platform in the case of D1. I'm still trying to understand why the documentation says we should prefere $env and maybe this has something to do with it. In other words, with JsDoc and TS, there's an app.d.ts file in which to add the interface platform env variable and bindings, e.g., DB: D1Database.
declare global {
namespace App {
// interface Error {}
// interface Locals {}
// interface PageData {}
interface Platform {
env: {
DB: D1Database;
};
context: {
waitUntil(promise: Promise<any>): void;
};
caches: Cache
}
}

export {};
declare global {
namespace App {
// interface Error {}
// interface Locals {}
// interface PageData {}
interface Platform {
env: {
DB: D1Database;
};
context: {
waitUntil(promise: Promise<any>): void;
};
caches: Cache
}
}

export {};
22 replies
CDCloudflare Developers
Created by cris on 7/5/2023 in #pages-help
/functions directory alternative?
While in the d1-open-alpha channel. Did you happen to see my comments on using d1? I got it working but only when I used TypeScript, not JsDoc and it wasn't even an option with Sveltekit if I'd only wanted javascript. Any idea off-hand why that would be?
22 replies