getsentry / sentry-docs

Sentry's documentation (and tools to build it)
https://docs.sentry.io
Other
332 stars 1.46k forks source link

Error: Page changed from static to dynamic at runtime /platforms/dotnet/guides/aspnetcore/usage/distribu... #10535

Open sentry-io[bot] opened 4 months ago

sentry-io[bot] commented 4 months ago

Sentry Issue: DOCS-7T9

⨯ Page changed from static to dynamic at runtime /platforms/dotnet/guides/aspnetcore/usage/distributed-tracing/dealing-with-cors-issues, reason: no-store fetch https://raw.githubusercontent.com/getsentry/sentry-api-schema/78a8da372a1912d69e27b7f36603017cd29b6815/openapi-derefed.json /platforms/dotnet/guides/aspnetcore/usage/distributed-tracing/dealing-with-cors-issues see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error

Error: Page changed from static to dynamic at runtime /platforms/dotnet/guides/aspnetcore/usage/distributed-tracing/dealing-with-cors-issues, reason: no-store fetch https://raw.githubusercontent.com/getsentry/sentry-api-schema/78a8da372a1912d69e27b7f3660301...
  File "app:///_next/server/chunks/144.js", line 1, in <anonymous>
    '{snip} store fetch ${e}${_.urlPathname?` ${_.urlPathname}`:""}`,n=new r(t);_.dynamicUsageErr=n,_.dynamicUsageStack=n.stack,_.dynamicUsageDescriptio {snip}
  File "app:///_next/server/chunks/144.js", line 1, in <anonymous>
    '{snip} butes??{})));try{if(l.length>1)return l(e,t=>g(e,t));let r=l(e);return d(r)?r.then(()=>e.end(),t=>g(e,t)).finally(t):(e.end(),t()),r}catch(r {snip}
  File "app:///_next/server/chunks/144.js", line 1, in a.with
    '{snip} a{active(){return n.ROOT_CONTEXT}with(e,t,r,...n){return t.call(r,...n)}bind(e,t){return t}enable(){return this}disable(){return this}}t.Noo {snip}
  File "app:///_next/server/chunks/144.js", line 1, in l.with
    '{snip} ve()}with(e,t,r,...n){return this._getContextManager().with(e,t,r,...n)}bind(e,t){return this._getContextManager().bind(e,t)}_getContextMana {snip}
  File "app:///_next/server/chunks/144.js", line 1, in l.startActiveSpan
    '{snip} ,c=this.startSpan(e,o,u),d=(0,a.setSpan)(u,c);return s.with(d,l,void 0,c)}}t.NoopTracer=l},124:(e,t,r)=>{Object.defineProperty(t,"__esModule {snip}
...
(5 additional frame(s) were not displayed)
a-hariti commented 4 months ago

I think this is happening because the fetch response can't be cached (it exceeds the 2MB limit)

But otherwise is a very cryptic error, many other users have reported it without a straightforward solution

relevant docs: fetch, static paths