Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: TypeError: must be str, not bytes
Post: RE: TypeError: must be str, not bytes

Thank you very much. Yes, the code I tried and did something when there were mistakes. Now it seems to have received a response from the server, but not the kind who waited import urllib from urllib...
Zhsv General Coding Help 14 27,741 Jan-06-2018, 10:39 PM
    Thread: TypeError: must be str, not bytes
Post: RE: TypeError: must be str, not bytes

Thank you very much. I will be studying. The code has API_SECRET = 'KY9R6bgPfQeDr2kV...rwm4aoGk0EvQwU...eduafbsk' it is encrypted apparently. I changed it for the forum. But I have error with full ke...
Zhsv General Coding Help 14 27,741 Jan-06-2018, 08:58 PM
    Thread: TypeError: must be str, not bytes
Post: RE: TypeError: must be str, not bytes

(Jan-06-2018, 06:16 PM)wavic Wrote: Consider that base64.b64encode(hmac.new(base64.b64decode( API_SECRET ), signature, hashlib.sha256).digest()) will return bytes again. So you have to convert it to...
Zhsv General Coding Help 14 27,741 Jan-06-2018, 06:25 PM
    Thread: TypeError: must be str, not bytes
Post: RE: TypeError: must be str, not bytes

(Jan-06-2018, 05:16 PM)wavic Wrote: There is something with the API_SECRET value. See the altchars parameter. Thank you very much! I'll figure it out. Need to organize the query API to place the ord...
Zhsv General Coding Help 14 27,741 Jan-06-2018, 05:24 PM
    Thread: TypeError: must be str, not bytes
Post: RE: TypeError: must be str, not bytes

(Jan-06-2018, 04:33 PM)wavic Wrote: line 33: requestContentBase64String = base64.b64encode(m.digest()).decode('utf-8')Thank You very much! Now a new error Traceback (most recent call last): File...
Zhsv General Coding Help 14 27,741 Jan-06-2018, 04:41 PM
    Thread: TypeError: must be str, not bytes
Post: RE: TypeError: must be str, not bytes

(Jan-06-2018, 04:22 PM)wavic Wrote: base64.b64encode(m.digest()) returns bytes. You have to convert it to string. Thank You very much! And how to do it ?
Zhsv General Coding Help 14 27,741 Jan-06-2018, 04:27 PM
    Thread: TypeError: must be str, not bytes
Post: RE: TypeError: must be str, not bytes

import time import hmac import urllib import requests import hashlib import base64 import sys import json API_KEY = 'ac85417173...abdf98138e...02' API_SECRET = 'KY9R6bgPfQeDr2kV...rwm4aoGk0EvQwU...ed...
Zhsv General Coding Help 14 27,741 Jan-06-2018, 04:05 PM
    Thread: TypeError: must be str, not bytes
Post: TypeError: must be str, not bytes

Hi ! Error in this code: Traceback (most recent call last): File "C:/Cloud/Cripto/3.py", line 53, in <module> print (api_query("GetBalance")) File "C:/Cloud/Cripto/3.py", line 34, in api_query...
Zhsv General Coding Help 14 27,741 Jan-06-2018, 12:49 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020