Vsx
05/15/2023, 12:34 AMhttps://cdn.discordapp.com/attachments/1107465992814211102/1107465992948432986/Screenshot_2023-05-14_203328.png▾
Berk Dusunur
05/15/2023, 3:15 AMnwdles
05/15/2023, 1:18 PM✘ [ERROR] A request to the Cloudflare API (/accounts/id/pages/projects/name/deployments) failed.
An unknown error occured. Contact your account team or Cloudflare support: https://cfl.re/3WgEyrH.
[code: 8000000]
pigoz
05/15/2023, 3:16 PMhelpful
05/15/2023, 8:56 PMjesterfebruary
05/15/2023, 9:47 PMRon Strauss
05/16/2023, 8:01 AMAssaf Morami
05/16/2023, 8:51 AMhttps://cdn.discordapp.com/attachments/1107953344443596843/1107953344787521598/image.png▾
Mityu
05/16/2023, 2:55 PMJack!
05/16/2023, 4:57 PMtrev
05/16/2023, 7:25 PMhttps://cdn.discordapp.com/attachments/1108112896627581018/1108112897063780383/image.png▾
philbookst
05/16/2023, 10:13 PMScooby
05/17/2023, 10:34 AMVerHext
05/17/2023, 9:31 PMnpm ERR! code E401
Incorrect or missing password.
Hubchicken
05/17/2023, 11:51 PMhttps://cdn.discordapp.com/attachments/1108542272905150554/1108542273152622672/image.png▾
Rena?
05/18/2023, 12:19 AMMubo
05/18/2023, 9:46 AMGazreyn
05/18/2023, 10:09 AMnpm create cloudflare
. I selected the nuxt template but have also tried with next.js too. npm run pages:deploy
seems to work no problem.
However, when I try to use the other available command, npm run pages:dev
I get an error in console and it fails.
bash
/home/<username>/code/<project>/node_modules/wrangler/wrangler-dist/cli.js:30632
throw a;
^
Error: write EPIPE
at afterWriteDispatched (node:internal/stream_base_commons:160:15)
at writeGeneric (node:internal/stream_base_commons:151:3)
at Socket._writeGeneric (node:net:930:11)
Relevant info is that Node version is 18.16.0
- This is using WSL2 on Windows 11.philbookst
05/18/2023, 11:21 AMMakisuo
05/18/2023, 6:32 PMViper
05/18/2023, 7:03 PMnpx @cloudflare/next-on-pages
The error says that I need to Import trace for requested modules and then It shows some random node models.
was wondering if anyone here has the same issue or knows a way to fix it, thank you.Adraas
05/18/2023, 7:30 PMuwvloereruit.nl
differs from uve-website.pages.dev
. The content served by the custom domain is different (in a visually breaking way) while its is fully server side generated HTML. I have verified this difference by examining both response bodies with Postman. Specific components are somehow rerendered and comments indicating conditional renders are not present in the HTML returned by the custom domain which indicate to me this is not a Nuxt issue?
I tried various possible solutions and non of them have worked.
- Use the beta build image
- Upgrade Nuxt
- Reconnect the custom domain
- Purge the zone cache
Could somebody please take a look, thanks!Kirkpatrick
05/19/2023, 4:34 AMSmr
05/19/2023, 6:12 PMhttps://cdn.discordapp.com/attachments/1109181818852364320/1109181819028516904/Screenshot_2023-05-19_210957.png▾
Southpaw1496
05/20/2023, 9:55 AMyml
- name: Deploy uses: https://github.com/cloudflare/pages-action@v1 with: apiToken: $ {{ secrets.CLOUDFLARE_API_TOKEN }} accountID: $ {{ secrets.CLOUDFLARE_ACCOUNT_ID }} projectName: "website" directory: "dist" gitHubToken: $ {{ secrets.GITHUB_TOKEN }}
When I run it, it fails with this error:
run/act/actions/https---github.com-cloudflare-pages-action@v1/index.js:221582 throw new Error("Unable to find pages project");3 ^45Error: Unable to find pages project6 at /run/act/actions/https---github.com-cloudflare-pages-action@v1/index.js:22158:137 at processTicksAndRejections (node:internal/process/task_queues:96:5)
The project I am trying to deploy is called "website" so I don't know how to tell what phase of the process is going wrong. The only thing I've thought to try is giving the token read and write permissions instead of just write.
Account ID: 09646c990f5cc498559b98c4427677d6flayks
05/20/2023, 6:04 PMhttps://cdn.discordapp.com/attachments/1109542071599124581/1109542071804629032/CleanShot_2023-05-20_at_20.03.262x.jpg▾
SuchACharles
05/20/2023, 7:37 PMSkye
05/20/2023, 8:34 PM{}
is normalsohebrapati
05/21/2023, 2:35 AMcreateSessionStorage
in an environment that requires passing in the context
?
Specifically, I'm using cloudflare-pages and have environment variables. Cloudflare doesn't make process.env
available; instead, the environment variables come in through the loader context
.
The best I can come up with is wrapping createSessionStorage
in a function that takes a `context`:
const sessionManager = sessionManagerFor(context)
const session = sessionManager.getSession(request.headers.get('cookie'))
…
return json('stuff', {
headers: {
'set-cookie': sessionManager.commitSession,
}
})
Is that the "most Remix-ey" way to do it?Fangliding
05/21/2023, 3:43 AM