denoland / denoland/deploy_feedback

Deno Deploy stuck building

Open
#627 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
79
Forks
5
PR merge metrics
No merged PRs in 30d

Description

Version: Whichever verson Deno Deploy is using.

So my Deno Deploy is stuck building. Here is a screenshot:

![deno-deploy-stuck](https://github.com/denoland/deno/assets/17122123/a8d7840c-b50c-472e-af9d-0dacc368249d)

Here is my code:

```
//@ts-nocheck
// @deno-types="npm:@types/express@4.17.15"
import express, { Request, Response } from "npm:express@4.18.2";

import * as base64 from "https://deno.land/std@0.217.0/encoding/base64.ts";

const app = express();

const EBAY_CLIENT_ID = Deno.env.get('EBAY_CLIENT_ID');
const EBAY_CLIENT_SECRET = Deno.env.get('EBAY_CLIENT_SECRET');
const EBAY_REDIRECT_URI = Deno.env.get('EBAY_REDIRECT_URI');

async function getEbayAccessToken(auth_code: string) {

const encoded_auth = base64.encodeBase64(`${EBAY_CLIENT_ID}:${EBAY_CLIENT_SECRET}`);//":"

const res = await fetch('https://api.ebay.com/identity/v1/oauth2/token', {
method: "POST",
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
'Authorization': 'Basic ' + encoded_auth
},
body: JSON.stringify({
grant_type: 'authorization_code',
redirect_uri: EBAY_REDIRECT_URI,
code: auth_code
})
})
const data = await res.json();

return data;
}

app.get("/", (req, res) => {
res.send("Welcome to the inventory-manager API!");
});

app.get('/auth/ebay/confirm', async (req: Request, res: Response) => {

const params = req.query;

const token = await getEbayAccessToken(params.code);

res.send('Your ebay account has been authorized' + JSON.stringify(token));
})

app.listen(8000);
```

Contributor guide

No contributing guide indexed for this repository

Research direction

No repository file, test, build log, or reproducible deployment steps are named. Start by deploying the provided TypeScript/Express application on Deno Deploy and inspect the build output or deployment status. Done would mean identifying the cause of the stuck build and documenting the result or a confirmed fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
express, typescript
Domain
backend, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.