Code Monkey home page Code Monkey logo

mirthpy's People

Contributors

feathersct avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

tiskinty

mirthpy's Issues

TypeError: quote_from_bytes() expected bytes when using service.getMessages

When using service.getMessages('{channelID}') I'm getting the error "TypeError: quote_from_bytes() expected bytes"

full trace:

Traceback (most recent call last):
File "C:\Users(username)\PycharmProjects\MirthCheck\main.py", line 25, in
lastMessage = service.getMessages('{channelID}', limit=1, offset=0,startDate="none", endDate="none", status="none")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users(username)\PycharmProjects\MirthCheck\venv\Lib\site-packages\mirthpy\mirthService.py", line 777, in getMessages
encParam = build_encoded_url_params(includeContent=includeContent, limit=limit, offset=offset, startDate=startDate, endDate=endDate, status=status)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users(username)\PycharmProjects\MirthCheck\venv\Lib\site-packages\mirthpy\utilities.py", line 25, in build_encoded_url_params
params.append(key + "=" + urllib.parse.quote_plus(value))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users(username)\AppData\Local\Programs\Python\Python311\Lib\urllib\parse.py", line 883, in quote_plus
string = quote(string, safe + space, encoding, errors)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users(username)\AppData\Local\Programs\Python\Python311\Lib\urllib\parse.py", line 867, in quote
return quote_from_bytes(string, safe)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users(username)\AppData\Local\Programs\Python\Python311\Lib\urllib\parse.py", line 897, in quote_from_bytes
raise TypeError("quote_from_bytes() expected bytes")
TypeError: quote_from_bytes() expected bytes

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.