Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: unsupported operand type(s) for +: 'dict_items' and 'dict_items' #3

Closed
gopinath6 opened this issue Feb 17, 2018 · 4 comments
Assignees

Comments

@gopinath6
Copy link

Any help on below error?
OS :Win7

Traceback (most recent call last):
File "cloudflare_enum.py", line 222, in
cloud.log_in(username,password)
File "cloudflare_enum.py", line 34, in log_in
self.s.headers.update( dict( new_headers.items() + self.global_headers.items() ) )
TypeError: unsupported operand type(s) for +: 'dict_items' and 'dict_items'

@0xbharath 0xbharath self-assigned this Feb 24, 2018
@0xbharath 0xbharath reopened this Feb 24, 2018
@0xbharath
Copy link
Contributor

0xbharath commented Feb 24, 2018

Hey!

Excuse me for the delay in response. I looked into the issue. What version of Python are you using?

I'm certain that the problem is because of using Python 3.x to execute the script. In Python 3.x, dict.items() returns an object with type dict_items which cannot be added and runs into a TypeError that you encountered. In Python 2.x, it returns a list which can be added.

@gopinath6
Copy link
Author

No problem,Now i tried in python2 version after entering cloudflare password getting below error. i entered correct password only.Any help?

image

@0xbharath
Copy link
Contributor

This error happen when you are rate limited(or for any other reason not allowed to scan) by CloudFlare. I'll look into the behaviour and get back to you.

@0xbharath
Copy link
Contributor

0xbharath commented Feb 25, 2018

Linked to an upstream issue mandatoryprogrammer/cloudflare_enum#3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants