question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Infinite loop bridge

See original GitHub issue

Environment

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:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
danielroecommented, Aug 16, 2022

You do not need unplugin script setup in bridge as it works out of the box with Vue 2.7.

0reactions
danielroecommented, Aug 22, 2022

I’m not really sure what you’re asking.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found