Python Forum
Error when decoding JSON ( Expecting ',' delimiter:)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error when decoding JSON ( Expecting ',' delimiter:)
#5
Service calls this function.
@app.route('/json-data', methods=['POST'])
def getMC():

    logMC = logging.getLogger(__name__)
    defineLogging()
    logMC.info('Starting main function')

    try:

        logMC.info('Control point 1')

        jattrs = request.get_json()   

        logMC.info('Control point 2')
The "Control point 1" is logged, "Control point 2" is not, so I guess the line between them must be broken.

It doesn't work only for this one cookieId value... I thought that maybe Python tries to cast string to int and it's too long, but it's not a problem.
Reply


Messages In This Thread
RE: Error when decoding JSON ( Expecting ',' delimiter:) - by tortoise - Feb-16-2019, 09:20 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  expecting value: line 1 column 1 (char 0) in print (r.json)) loutsi 3 7,689 Jun-05-2020, 08:38 PM
Last Post: nuffink
  500 error cannot deserialize json object SaiBhargav 0 2,825 Sep-18-2018, 09:53 PM
Last Post: SaiBhargav
  Decoding html to text string PeterPython 1 2,665 Aug-12-2018, 07:23 PM
Last Post: Larz60+
  Json decoding error saisankalpj 3 3,795 Jul-23-2018, 07:06 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

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