Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7830725
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T11:22:58+00:00 2026-06-02T11:22:58+00:00

I have implemented a very basic and by-the-tutorial Pusher triggers in my django app.

  • 0

I have implemented a very basic and by-the-tutorial Pusher triggers in my django app.
At first it worked great, but after a few commits I ran into the following exception:

"object of type 'NoneType' has no len()"

Out of the second of the following lines:

p = pusher.Pusher()
p[page_key].trigger('page_update', {'msgid' : message.id})

Different or an empty dict produced same result, same as changing page_key to string instead of unicode – nothing.
Also note that type() of p and p.trigger gives logical results, and they’re definitely not None.

This line WORKS IN SOME CASES (which I have no clue what so special about them) and has worked in the past as I’ve mentioned, yet I can’t figure out what am I doing wrong.

It seems that none of the last commits have anything to do with Pusher, so I’m helpless. Searching the web for this exception wasn’t fruitful at all and in general there’s not enough documentation regarding to django + Pusher.

It is probably something else that I’m doing wrong but I have no clue where to start looking.

Any help will be most appreciated.

Traceback:

  79.         p[page_key].trigger('page_update', {'msgid' : message.id})
File "/usr/local/lib/python2.7/dist-packages/pusher/__init__.py" in trigger
  41.         status = self.send_request(self.signed_query(event, json_data, socket_id), json_data)
File "/usr/local/lib/python2.7/dist-packages/pusher/__init__.py" in signed_query
  54.         signature = hmac.new(self.pusher.secret, string_to_sign, hashlib.sha256).hexdigest()
File "/usr/lib/python2.7/hmac.py" in new
  133.     return HMAC(key, msg, digestmod)
File "/usr/lib/python2.7/hmac.py" in __init__
  68.         if len(key) > blocksize:

Exception Type: TypeError at /sphere/comment
Exception Value: object of type 'NoneType' has no len()
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T11:23:01+00:00Added an answer on June 2, 2026 at 11:23 am

    self.pusher.secret is None there instead of a string. Are your settings for pusher not getting picked up?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am quite new to Indy, have implemented very basic idTCPServer and IdTCPClient between
I have implemented a very basic Stack in Java which is giving strange errors
I am developoing a Rails v2.3.2 app. A very basic Rails structure implemented as
I have implemented a very basic plug-in system as part of a static library
I have implemented lucene for my application and it works very well unless you
Very simple Qt GUI application: On the scene I have multiple circles implemented as
Not very technical, but... I have to implement a bad words filter in a
I have implemented basic syntax highlighting by properly setting the NSTextStorage delegate of my
First off, please accept my apologies if this question is basic, I mainly have
I have been struggling with this a while now. I implemented a basic IHttpHandler

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.