Certificates Tab for Container App Timeout

Hello,

So I cannot access the certificates tab for our listingvillage-production container as it redirects me with a “timeout” popup. The following code may be irrelevant but this is what I was doing before this happened and I am continuing to have issues with

I ran the following curl command to test registering certs programmatically via graphQL and it worked as expected:

curl 'https://api.fly.io/graphql' -H 'Authorization: Bearer <token>' -H 'Accept-Encoding: gzip, deflate, br' -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'DNT: 1' -H 'Origin: https://api.fly.io' -H 'Fly-GraphQL-Client: playground' --data-binary '{"query":"mutation($appId: ID!, $hostname: String!) { addCertificate(appId: $appId, hostname: $hostname) { certificate { configured acmeDnsConfigured acmeAlpnConfigured certificateAuthority certificateRequestedAt dnsProvider dnsValidationInstructions dnsValidationHostname dnsValidationTarget hostname id source}}}","variables":{"appId":"listingvillage-production","hostname":"www.test.com"}}' --compressed

I then tried to recreate it using PHP curl that gave back a error and without the compression sent back a encoded string:

$ch = curl_init();

$headers = array();
$headers[] = 'Authorization: Bearer <token>';
$headers[] = 'Accept-Encoding: gzip, deflate, br';
$headers[] = 'Content-Type: application/json';
$headers[] = 'Accept: application/json';
$headers[] = 'Connection: keep-alive';
$headers[] = 'Dnt: 1';
$headers[] = 'Origin: https://api.fly.io';
$headers[] = 'Fly-Graphql-Client: playground';
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

curl_setopt($ch, CURLOPT_URL, 'https://api.fly.io/graphql');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "{'query':'mutation($appId: ID!, $hostname: String!) { addCertificate(appId: $appId, hostname: $hostname) { certificate { configured acmeDnsConfigured acmeAlpnConfigured certificateAuthority certificateRequestedAt dnsProvider dnsValidationInstructions dnsValidationHostname dnsValidationTarget hostname id source}}}','variables':{'appId':'listingvillage-production','hostname':'www.test56.com'}}");
//curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');

$result = curl_exec($ch);

ever since then I cannot view the certificates under the certificates tab in the Fly UI. Can we get this unstuck and if this is related how do I prevent it from happening again.

I’m just checking in again since we have to keep adding certs manually for every new client via flyctl rather than API.

Hey @Jacob, we just got this fixed. I’m sorry for slowing you down!

1 Like

Thank you @michael ! Did I cause this or are there any red flags in my curl command? I don’t want to cause this again when trying to get the graphQL API to work

Nevermind fixed! Thanks again!