Mailgun email_error

I executed the code for email notification- I am getting the following error-

Reading sensor value
Sensor value is: 340
Making request to Mailgun to send an email
Error occured: Below are the details
Expecting value: line 1 column 1 (char 0)

Can You please explain why is this error coming and how to correct it?

Hii @180020039
This is a very common error and mostly happens when you’ve passed wrong credentials. It has already been solved in the forum. So please look up the thread:Mailgun Error-Expecting value:line 1 column 1 (char 0)

Hope this clears your doubt.

HI @180020039
Please share your screenshot and please check whether Sandbox url and sender mail is given correctly please update your process.

i tried the solution which is already discussed and i remove
response_text = json.loads(response.text)
print("Response received from Mailgun is: " + str(response_text[‘message’]))

this two lines and add

print ("Mailgun response is " + response.text)

BUT then also i do not get mail
out put shows “Mailgun response is Mailgun Magnificent API”

below is the screenshot

Something wrong with the credentials. Make New Topic, and upload your screenshot of email conf file. (Hide last few digits of API and Auth Token)

hello @akshayan.sinha thank you for helping
what happens as i upload the query i got the mistack at time so it is solved. than you so much.:slight_smile::slight_smile::smiley::smiley::smiley:

@jmpatel7102000 what was the mistake? Great you solved it at your end

SANDBOX_URL= ‘sandboxabc6ba35770947b0bf0aa2989304fdc0.mailgun.org

i append /messages here when i got colum 1 row 1 char[0] error and also i write full URL firstly so I shortened it and write like above. so it get solved.