storybook icon indicating copy to clipboard operation
storybook copied to clipboard

Runtime Error Endpoint is a 404

Open exoRift opened this issue 2 years ago • 3 comments

Describe the bug Whenever my React module has an error, rather than Storybook displaying the error, the endpoint to which the error should be posted (/runtime-error) returns a 404. It used to work, but I'm not sure what I changed that caused it to stop working.

To Reproduce https://github.com/exoRift/fluentctx/tree/dev

System

Environment Info:

  System:
    OS: Linux 4.4 Debian GNU/Linux 10 (buster) 10 (buster)
    CPU: (8) x64 Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz
  Binaries:
    Node: 16.13.2 - ~/.nvm/versions/node/v16.13.2/bin/node
    npm: 8.1.2 - ~/.nvm/versions/node/v16.13.2/bin/npm
  npmPackages:
    @storybook/addon-actions: ^6.5.9 => 6.5.9 
    @storybook/addon-essentials: ^6.5.9 => 6.5.9 
    @storybook/addon-interactions: ^6.5.9 => 6.5.9 
    @storybook/addon-links: ^6.5.9 => 6.5.9 
    @storybook/builder-webpack4: ^6.5.9 => 6.5.9 
    @storybook/manager-webpack4: ^6.5.9 => 6.5.9 
    @storybook/react: ^6.5.9 => 6.5.9 
    @storybook/testing-library: ^0.0.13 => 0.0.1

Additional context image image image

exoRift avatar Jul 14 '22 17:07 exoRift

I have the same issue - everything "works", but any uncaught error on the page gets sent here.

For example:

{"message":"ResizeObserver loop limit exceeded","source":"http://localhost:6006/iframe.html?viewMode=story&id=payments-experience--live","line":0,"column":0,"error":null,"origin":"preview"}

ericclemmons avatar Sep 28 '22 15:09 ericclemmons

Not sure if you have figured this out yet or not, but I had the same issue and it came down to a conflict I had with a browser extension ('Change Timezone for Google Chrome™' in my case).

In addition to the /runtime-error 404 error, I had another error that had a few variable and function names that led me to the culprit extension. If you haven't already, start there. Hope you can figure it out!

nategarrow avatar Nov 08 '22 23:11 nategarrow

I think the 404 error has been fixed in https://github.com/storybooks/storybook/pull/20462?

luin avatar Jan 19 '23 02:01 luin

Could somebody test this before I close the issue?

exoRift avatar Jan 19 '23 21:01 exoRift

Closing this for now. Please let me know if there's more to be done here!

shilman avatar Jan 23 '23 06:01 shilman

SyntaxError: Unexpected token '<' i am getting this error when i run the storybook

kiran-chikkala avatar Dec 11 '23 17:12 kiran-chikkala