-
Notifications
You must be signed in to change notification settings - Fork 4
No result from github https query #8
Comments
Similar result to: "https://worldtimeapi.org/api/timezone/Europe/London.txt" |
When I do the London, example: I see [ATCP] _recv: tot_len = 1211 |
Looks like data comes back on the github api call: |
Here's something to make it even more interesting: |
Hi @glennswest Thanks for your interest and usage of the library. I've just tested and found no issue at all with the libraries, using the AsyncHTTPSRequest_ESP example. Check the following
I suggest you restart rewriting your code, slowly and methodologically, from the above example, then move forward gradually to identify when and where the code is broken. I'm sorry I certainly don't have all the time in the world to read, test and debug your code. I also don't have the same hardware and/or similar settings (network, ISP, etc.). As this is not a bug of the library, I'm closing the issue now, and only reopen when you prove this is a bug of this library. Good Luck, Debug Terminal Outputs
|
Actually, the probem is "timing". |
I've ran it multiple times, and every url I use works now, with debug off. |
Thanks for your feedback and I'm glad you found the elusive clue from debug messages
Will increase the |
Great. Happy I could help. |
Hi @glennswest The new AsyncHTTPSRequest_Generic releases v2.0.1 has just been published. Your contribution is noted in Contributions and Thanks Best Regards, Releases v2.0.1
|
Wow, thanks. |
Describe the bug
Doing a query to a github api endpoint (Publically available, and works from curl), and get no response.
Steps to Reproduce
Run app(i2cgateha) on m5stack esp32 (Which has working mqttasync and webserver), query returns no result.
App github: https://github.com/glennswest/i2cgateha
Debug Text: https://raw.githubusercontent.com/glennswest/i2cgateha/main/problem.txt
Steps to reproduce the behavior. Including the MRE sketches
Run above program
Expected behavior
Returns:
Print something like:
[
{
"name": "index.html",
"path": "contents/index.html",
"sha": "9e52837f62962c18c7e214a7e1a0d70882a1c726",
"size": 11,
"url": "https://api.github.com/repos/glennswest/i2cgateha/contents/contents/index.html?ref=main",
"html_url": "https://github.com/glennswest/i2cgateha/blob/main/contents/index.html",
"git_url": "https://api.github.com/repos/glennswest/i2cgateha/git/blobs/9e52837f62962c18c7e214a7e1a0d70882a1c726",
"download_url": "https://raw.githubusercontent.com/glennswest/i2cgateha/main/contents/index.html",
"type": "file",
"_links": {
"self": "https://api.github.com/repos/glennswest/i2cgateha/contents/contents/index.html?ref=main",
"git": "https://api.github.com/repos/glennswest/i2cgateha/git/blobs/9e52837f62962c18c7e214a7e1a0d70882a1c726",
"html": "https://github.com/glennswest/i2cgateha/blob/main/contents/index.html"
}
}
]
Actual behavior
Returns no data
Debug and AT-command log (if applicable)
See serial log:
https://raw.githubusercontent.com/glennswest/i2cgateha/main/problem.txt
Information
Please ensure to specify the following:
Arduino 1.18.16
Hardware: M5Stack-Paper ESP32
Pull a list of files on the directory on github
Use the supplied url to test with your example code
The text was updated successfully, but these errors were encountered: