Questions tagged [typeerror]

1 votes
0 replies
TypeError: 'module' object is not callable Flask JWT
I'm working on a Flask server where we have a route to validate a user's JWT token using the library flask-jwt-extended. This is what our route l...
asked 1 month ago
0 votes
0 replies
Webpack - Uncaught TypeError: Cannot read property 'call' of undefined
I'm using vue.js & getting Uncaught TypeError while adding css-style in my vue-component. It seems fine when I either import css in script or...
0 votes
0 replies
how to fix TypeError null is not an onject (evaluating 'item.rating_stars.length')
I'm getting this error when debugging a react-native app, it is a directory connected to a wordpress website, it shows listings and everything is...
asked 1 month ago
-2 votes
0 replies
TypeError: unsupported operand type(s) for /: 'function' and 'int' [duplicate]
This question already has an answer here: TypeError: unsupported operand type(s) for ** or pow(): 'function' and 'int'...
asked 1 month ago
0 votes
1 replies
TypeError at /login/ 'bool' object is not callable
I'm setting up user authentication for an e-commerce site and when printing (request.user.is_authenticated()) I get the following error: Type...
0 votes
2 replies
Why is this throwing a TypeError?
I have a react component that is supposed to map a 'persons' state and return a 'person' list, it displays the list fine, and deletePersonHandler...
asked 1 month ago
0 votes
0 replies
Comparsion between instances of int and Magicmock works in python 2 but raises TypeError in Python3
I am trying to check the response status code after trigerring some API with a POST method, Response status code is of Magicmock instance type, i...
0 votes
1 replies
Uncaught TypeError: value.CommentTypes.join is not a function Angular
In angularjs I am using one method calling differently some time it gets value in array form and from another place it gets simple value not in a...
0 votes
0 replies
SimpleConfigParser gives a “TypeError: get() got an unexpected keyword argument 'fallback'” in Python 3.6
I am trying a SimpleConfigParser library with Python 3.6. But getting TypeError. Can any one help me regarding this? Code which I try: from sim...
0 votes
1 replies
Convert input str to int in python [duplicate]
This question already has an answer here: How can I read inputs as numbers? 10 a...
0 votes
2 replies
Node JS PostgreSQL TypeError: Cannot read property 'then' of undefined
In the following node js code: function saveAction(request, response) { const movie = { id: request.body.id, title: request.body.title...
asked 1 month ago
0 votes
0 replies
TypeError: ---— is not a function (near '…this.state.dataSource…) React Native API FETCH Issue
I'm learning API on react native. I would like to use OMDB api. I have it somewhat working and I can see that it collects the data from the fetch...
asked 2 months ago
0 votes
0 replies
TypeError: exists is not a function when importing node-serialport
i am building an App that interacts with a device via USB/Serialport. I am using React + Electron + node-serialport for this. Im still pretty muc...
0 votes
1 replies
Getting two errors, keyerror and typeerror after script is left to run for a while
After running this bit of code in an endless while True loop, it randomly crashes and throws these two errors: TypeError: string indices must be...
asked 2 months ago
0 votes
1 replies
TypeError related to XF\Pub\Controller\AbstractController
Disclaimer: I am new to XenForo 2.X programming, please go easy on me. An exception occurred: [TypeError] Argument 1 passed to Pages\Providers:...
asked 2 months ago
0 votes
0 replies
jQuery inputToken library : Uncaught TypeError: Cannot read property 'replace' of undefined
I try to use multiple values fields with tokenInput library but I receive the following error message: Uncaught TypeError: Cannot read proper...
asked 2 months ago
0 votes
1 replies
How to input a series/list consisting of different tokens in a Gensim Dictionary?
I hava a pandas dataframe that has one column with conversational data. I preprocessed it in the following way: def preprocessing(text): re...
asked 2 months ago
0 votes
1 replies
Python Postgres Insert Error: TypeError: not all arguments converted during string formatting
I'm receiving the following error code when trying to insert the below results from the below code, into a text field in a Postgres database: Ty...
asked 2 months ago
-2 votes
0 replies
TypeError: got(…).on is not a function. Nodejs
I am trying to create a program in Nodejs that converts the URL to torrent. For that first, I want to download the file. I am using the npm packa...
asked 2 months ago
0 votes
1 replies
How can fix “convert the series to <class 'float'>” problem in Pandas?
I've got a simple question which I couldn't understand why it is the case for me . I'm reading two matrices A and B (which are 24*20)and calcula...
asked 2 months ago
-3 votes
1 replies
how to fix: float() argument can be string or number, not 'map'
this is my simple code: I have tried changing some datatype @staticmethod def load_from_file(filename, size_fit = 50): ''' Loads the si...
asked 2 months ago
0 votes
0 replies
Alert is undefined and 'findUser' variable is undefined
I'm trying to have a JavaScript function return the username of a given user id based into my function. I'm experiencing something very strange t...
asked 2 months ago
0 votes
1 replies
How to fix OpenCV Numpy Error, object is not iterable
I'm following a guide to develop a motion detection security feed and have run into an issue. The author of the tutorial had no issues, but I do....
asked 3 months ago
0 votes
2 replies
How do I convert numbers in a string to complete function in python 2.7?
I'm trying to write some code using functions, if/elif, and loops. I'm basing it on the Learn Python The Hard Way, exercise 35. (Python 2,7) Whe...
asked 2 months ago
-1 votes
2 replies
TypeError: unsupported operand type. How to to find the smallest difference between numbers in a list
i need to find the smallest difference between numbers in a list. For some reason it doesnt work when i input numbers in the console, and i get...
asked 2 months ago