The issue we are experiencing is one related to KV assets. For context: our site is a Vue 3 application. We are building it using Vitedge to support SSR running on a Cloudflare Worker.
The issue as reported by one of our devs:
-
We deployed our application using Vitedge. In doing so, we deployed a new worker and KV: - Worker: test-assets
- KV: __test-assets-workers_sites_assets (c46d5f240d0643fe9f822ae3a25595de)
-
We opened the page that the Wrangler GitHub action had spun up for our Worker: https://test-assets.superfarm.workers.dev/ in incognito mode and waited until test-assets redeployed, then navigated to one of our pages ("NFT Drops") and experienced some HTTP 500 errors that some of our assets could not be found.
Error: 1101
Ray ID: 6ccb5309f8d94991
Timestamp: 2022-01-13 02:51:43 UTC
- Checking our logs for the 500 error isn't helpful.``` "exceptions": [
{
"name": "Error",
"message": "internal error",
"timestamp": 1642042501244
}
],
4. Further digging shows that the assets in the URL don't seem to match those that were stored in KV:```
$ wrangler kv:key get assets/Stats.af469f3b.js --namespace-id c46d5f240d0643fe9f822ae3a25595de
Code 10009: get: 'key not found'
The actual asset name:```
$ wrangler kv:key get assets/Stats.af469f3b.9ec2057bc5.js --namespace-id c46d5f240d0643fe9f822ae3a25595de
We're currently assuming that either Vitedge or Wrangler are adding some unique hash to the end of our assets. Vitedge is getting its assets using the `@cloudflare/kv-asset-handler` package so this might be a known issue in that handler?
We would love it if you could share some insights on this or help further debug.
The issue we are experiencing is one related to KV assets. For context: our site is a Vue 3 application. We are building it using Vitedge to support SSR running on a Cloudflare Worker.
The issue as reported by one of our devs:
We deployed our application using Vitedge. In doing so, we deployed a new worker and KV: - Worker: test-assets
- KV: __test-assets-workers_sites_assets (c46d5f240d0643fe9f822ae3a25595de)
We opened the page that the Wrangler GitHub action had spun up for our Worker: https://test-assets.superfarm.workers.dev/ in incognito mode and waited until
test-assetsredeployed, then navigated to one of our pages ("NFT Drops") and experienced some HTTP 500 errors that some of our assets could not be found.- https://test-assets.superfarm.workers.dev/assets/Stats.af469f3b.js
- https://test-assets.superfarm.workers.dev/assets/index.b28d30af.js
- https://test-assets.superfarm.workers.dev/assets/ViewDrop.e0204051.js
- https://test-assets.superfarm.workers.dev/assets/Banner.e6440b01.js
{
"name": "Error",
"message": "internal error",
"timestamp": 1642042501244
}
],
The actual asset name:```
$ wrangler kv:key get assets/Stats.af469f3b.9ec2057bc5.js --namespace-id c46d5f240d0643fe9f822ae3a25595de