Infinite loop bridge
See original GitHub issueEnvironment
Nuxt CLI v3.0.0-rc.8
- Operating System:
Darwin
- Node Version:
v16.15.0
- Nuxt Version:
2.15.8
- Package Manager:
npm@8.5.5
- Builder:
webpack
- User Config:
-
- Runtime Modules:
-
- Build Modules:
-
Reproduction
I can’t create repro for this project
Describe the bug
I migrated from composition/api to nuxt/bridge and get infinite loading and console error on server side:
found in
---> <Error> at layouts/error.vue
<Nuxt>
<ErrorLayout> at layouts/ErrorLayout.vue
<Root>
[Vue warn]: Error in setup: "Error: This must be called within a setup function."
I searching root of problem and found it:
try {
const response = await this.$nuxt.$axios.get<ApiFirmApplicationInit>(`/api/firm/application/init/?action=init`, {
params: { hostname }
});
if (response.data) {
this.INIT_APP(response.data);
return true;
}
}
Request for some reason sleep and does not finished in line
const response = await this.$nuxt.$axios.get<ApiFirmApplicationInit>(`/api/firm/application/init/?action=init`, {
params: { hostname }
});
It works with @nuxt/composition-api and returned response, but not with bridge Also I use @nuxtjs/axios with params:
axios: {
proxy: true,
},
And finally i get:
503 Server Unavailable
Error: socket hang up
at connResetException (node:internal/errors:692:14)
at Socket.socketOnEnd (node:_http_client:478:23)
at Socket.emit (node:events:539:35)
at Socket.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1345:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21
Any ideas, what’s wrong?
Additional context
No response
Logs
No response
Issue Analytics
- State:
- Created a year ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Infinity Loop Bridge / 10 Design + Buro Happold - ArchDaily
The winning bridge scheme proposes an undulating ribbon of structure that wraps around the 6 lane road deck in a continuous sculptural loop...
Read more >INFINITY LOOP, WUCHAZI BRIDGE
The Wuchazi Bridge creates an “infinite meandering path” over the Fu Hé river in Chengdu. The fast track for bicycle with a panoramic...
Read more >五岔子大橋 - Wuchazi Bridge (INFINITE LOOP)
The bridge is designed to offer an attractive car-free pathway over the Fu Hé river which is meandering in southern direction through Chengdu,...
Read more >Shizimen Gateway Bridge (The Infinity Loop) - 10 Design
The platform offers a rest point and views across the Pearl River Delta. The continuity of the loop structure appears as a dramatic...
Read more >Wuchazi Bridge creates "infinite meandering path" over ...
The Wuchazi Bridge has been built with a variety of pedestrian and cyclist routes across a river in the Chinese city of Chengdu....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You do not need unplugin script setup in bridge as it works out of the box with Vue 2.7.
I’m not really sure what you’re asking.