Giter Site home page Giter Site logo

Cannot read property crumb of null about crumb HOT 5 CLOSED

hapijs avatar hapijs commented on September 16, 2024
Cannot read property crumb of null

from crumb.

Comments (5)

stongo avatar stongo commented on September 16, 2024

What version of hapi are you using? Also can you provide a sample server
code similar to that of your server when this error occurs? Bonus points
for adding a test to reproduce it :)
On Apr 13, 2015 5:23 PM, "Kenneth" [email protected] wrote:

Hello! For some reason, some of my requests are returning a null object
for the value of requests.plugins, resulting in the following error:

Stack trace
TypeError: Cannot read property 'crumb' of null
at generate (/usr/www/440/node_modules/crumb/lib/index.js:156:34)
at /usr/www/440/node_modules/crumb/lib/index.js:85:13
at /usr/www/440/node_modules/hapi/lib/handler.js:312:22
at iterate (/usr/www/440/node_modules/hapi/node_modules/items/lib/index.js:35:13)
at Object.exports.serial (/usr/www/440/node_modules/hapi/node_modules/items/lib/index.js:38:9)
at /usr/www/440/node_modules/hapi/lib/handler.js:307:15
at internals.Protect.run (/usr/www/440/node_modules/hapi/lib/protect.js:56:5)
at Object.exports.invoke (/usr/www/440/node_modules/hapi/lib/handler.js:305:22)
at /usr/www/440/node_modules/hapi/lib/request.js:318:32
at iterate (/usr/www/440/node_modules/hapi/node_modules/items/lib/index.js:35:13)
at done (/usr/www/440/node_modules/hapi/node_modules/items/lib/index.js:27:25)
at finish (/usr/www/440/node_modules/hapi/lib/protect.js:45:16)
at wrapped (/usr/www/440/node_modules/hapi/node_modules/hoek/lib/index.js:798:20)
at done (/usr/www/440/node_modules/hapi/node_modules/items/lib/index.js:30:25)
at Function.wrapped as _next
at Function.internals.continue (/usr/www/440/node_modules/hapi/lib/reply.js:102:10)

Any ideas as to what might cause request.plugins to be null from hapi? I
checked my other plugins and haven't found anything that might unset state
generally.


Reply to this email directly or view it on GitHub
#50.

from crumb.

kenkouot avatar kenkouot commented on September 16, 2024

Hey @stongo! Thanks for the quick turnaround. The server code is actual open and located here. The reproduction steps are actually what I'm stumbling on. I can't reproduce this locally or on our staging server, but on production (where we get tons of traffic) this error occurs <.01% of the time. We are running hapi 8.4.0 and you can find our full list of dependencies here.

from crumb.

kenkouot avatar kenkouot commented on September 16, 2024

Just a quick update, it's actually request.state that is null.

from crumb.

kenkouot avatar kenkouot commented on September 16, 2024

Going to close this because it seems the root cause isn't crumb.

from crumb.

lock avatar lock commented on September 16, 2024

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

from crumb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.