strapi icon indicating copy to clipboard operation
strapi copied to clipboard

http onResponse hook freezes the server

Open sjahns opened this issue 3 years ago • 0 comments

Version

@nuxtjs/strapi: v0.3.1 nuxt: v2.15.8

Reproduction Link

https://github.com/sjahns/strapi-test

You will need a working strapi server to do a request. I just used another strapi installation I had running on localhost. You might have to change the strapi settings.

Steps to reproduce

  • Start the server.
  • Go to localhost:3000 -> That should work with the console.log() output from the asyncData in the page
  • enable the plugin that I prepared
  • Go to localhost:3000 -> You will see the console.log() from the hook but the server freezes

If you register the plugin as client only it works as expected. It only breaks on the server. You can also register the hook in the asyncData without the plugin, same result.

What is Expected?

the console.log() from the asyncData as well as the console.log() from the plugin

What is actually happening?

the console.log() from the plugin and the server freezes.

sjahns avatar Oct 26 '21 02:10 sjahns