-
Notifications
You must be signed in to change notification settings - Fork 25
Description
TypeError
TypeError: can only concatenate str (not "bytes") to str
Traceback (most recent call last)
File "C:\Users\HP\AppData\Local\Programs\Python\Python38\Lib\site-packages\flask\app.py", line 2463, in call
def __call__(self, environ, start_response):
"""The WSGI server calls the Flask application object as the
WSGI application. This calls :meth:`wsgi_app` which can be
wrapped to applying middleware."""
return self.wsgi_app(environ, start_response)
def __repr__(self):
return "<%s %r>" % (self.__class__.__name__, self.name)
File "C:\Users\HP\AppData\Local\Programs\Python\Python38\Lib\site-packages\flask\app.py", line 2449, in wsgi_app
response = self.handle_exception(e)
File "C:\Users\HP\AppData\Local\Programs\Python\Python38\Lib\site-packages\flask\app.py", line 1866, in handle_exception
reraise(exc_type, exc_value, tb)
File "C:\Users\HP\AppData\Local\Programs\Python\Python38\Lib\site-packages\flask_compat.py", line 39, in reraise
raise value
File "C:\Users\HP\AppData\Local\Programs\Python\Python38\Lib\site-packages\flask\app.py", line 2446, in wsgi_app
response = self.full_dispatch_request()
File "C:\Users\HP\AppData\Local\Programs\Python\Python38\Lib\site-packages\flask\app.py", line 1951, in full_dispatch_request
rv = self.handle_user_exception(e)
File "C:\Users\HP\AppData\Local\Programs\Python\Python38\Lib\site-packages\flask\app.py", line 1820, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "C:\Users\HP\AppData\Local\Programs\Python\Python38\Lib\site-packages\flask_compat.py", line 39, in reraise
raise value
File "C:\Users\HP\AppData\Local\Programs\Python\Python38\Lib\site-packages\flask\app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "C:\Users\HP\AppData\Local\Programs\Python\Python38\Lib\site-packages\flask\app.py", line 1935, in dispatch_request
return self.view_functionsrule.endpoint
File "C:\Users\HP\Desktop\Secure-File-Storage-Using-Hybrid-Cryptography-master\app.py", line 86, in upload_file
return start_encryption()
File "C:\Users\HP\Desktop\Secure-File-Storage-Using-Hybrid-Cryptography-master\app.py", line 27, in start_encryption
enc.encrypter()
File "C:\Users\HP\Desktop\Secure-File-Storage-Using-Hybrid-Cryptography-master\encrypter.py", line 88, in encrypter
Algo1_extented(files[index],key_1_1,key_1_2)
File "C:\Users\HP\Desktop\Secure-File-Storage-Using-Hybrid-Cryptography-master\encrypter.py", line 23, in Algo1_extented
raw = raw + line
TypeError: can only concatenate str (not "bytes") to str
The debugger caught an exception in your WSGI application. You can now look at the traceback which led to the error.
To switch between the interactive traceback and the plaintext one, you can click on the "Traceback" headline. From the text traceback you can also create a paste of it. For code execution mouse-over the frame you want to debug and click on the console icon on the right side.
You can execute arbitrary Python code in the stack frames and there are some extra helpers available for introspection:
dump() shows all variables in the frame
dump(obj) dumps all that's known about the object