Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CTBot::sendCommand - json emply #85

Open
VashCrHm opened this issue Jun 22, 2021 · 11 comments
Open

Fix CTBot::sendCommand - json emply #85

VashCrHm opened this issue Jun 22, 2021 · 11 comments

Comments

@VashCrHm
Copy link

From the date 21-06-2021 16:00 is necessary add "https://api.telegram.org";

const String URL = (String)"GET /bot" + m_token + (String)"/" + command + parameters;

to

const String URL = (String)"GET https://api.telegram.org/bot" + m_token + (String)"/" + command + parameters;

File CTBot.cpp, line 30

  1. auto-redirect from "api.telegram.org" to "core.telegram.org"
  2. "getNewMessage error: ArduinoJson deserialization error code: json emply"
    (because it receives html code as a response, no json file)

I hope it will be of help, greetings :)

@grosdax
Copy link

grosdax commented Jun 22, 2021

Thank you it works like a charm

@bbird8
Copy link

bbird8 commented Jun 22, 2021

Perfect! Thanks!

@konig87nikkinakki
Copy link

Perfect. i wrote issue #84 some days ago. now it works, here is my configuration:

  1. Arduino ver 1.8.12
  2. libreria CTbot ver 2.1.5
  3. JSON LIBRARY by Benoit Blanchon ver 6.18.0
  4. core di ESP8266 (programmatore) ver 2.6.3
    AND IT S WORKING (i just run echoBot from Examples and it works fine, testConnection OK, yesterday was "NOK".

@GhaniyKie
Copy link

Thanks a lot, @VashCrHm
Cause of you my room lamp can lights again hahaha...

@mhilmanmaulana
Copy link

Perfect. i wrote issue #84 some days ago. now it works, here is my configuration:

  1. Arduino ver 1.8.12
  2. libreria CTbot ver 2.1.5
  3. JSON LIBRARY by Benoit Blanchon ver 6.18.0
  4. core di ESP8266 (programmatore) ver 2.6.3
    AND IT S WORKING (i just run echoBot from Examples and it works fine, testConnection OK, yesterday was "NOK".

could you drop the sytax for me so I can try it? Thanks
@konig87nikkinakki

@shurillu
Copy link
Owner

shurillu commented Jun 23, 2021

Many thanks VashCrHm, I'm updating the two library and soon I'll draft a new release.

UPDATE

I've uploaded a quick fix in the v3.0.0 branch.
I'll do the same with a new v2.x.x release this evening.

@gokil0815
Copy link

i hope so... because i really need it for college assignment

@shurillu
Copy link
Owner

I have just published a new release (2.1.6) with fixes suggested (and verified) in this thread.
It should fix the problem. Please let me know if it solve the issue.

Cheers

Stefano

@rolo11
Copy link

rolo11 commented Jun 23, 2021

Grat job!!!!!!!!!!

@konig87nikkinakki
Copy link

konig87nikkinakki commented Jun 23, 2021

sytax

What is a sytax? i ve modified the file in library as shown in top of this Issue, and it's working now.
I wrote my configuration so everyone can know exactly what i'm using to Compile and Program

By the way it's working since yesterday so maybe we solved the issue ;-)

@bgie
Copy link

bgie commented Jun 27, 2021

Had the same issue, connection with telegram server failed after my esp8266 was running for >1 year.
The latest version fixed it, so thanx a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants