Navigation

    Welcome to the Pycom forum

    Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Tags
    3. urequests
    Log in to post

    • N

      Failure on urequests library OSError: no available NIC
      Issues & Bugs • oserror urequests urequest.py get requests • • nervencid  

      2
      0
      Votes
      2
      Posts
      106
      Views

      M

      Hi, Did you check whether your WiPy is connected to wifi? If WiPy is not connected to wifi, you can receive oserror. After being sure that your WiPy connected to wifi, please try your code. Best,
    • K

      urequests and r.close()
      Getting Started • urequests r.close • • kjm  

      1
      0
      Votes
      1
      Posts
      202
      Views

      No one has replied

    • K

      urequests timeouts
      GPy • urequests timeout • • kjm  

      9
      0
      Votes
      9
      Posts
      676
      Views

      K

      @andreas blobs are a bit beyond my skill set but ai=socket.getaddrinfo(host, 443) is using a socket so I reckon a 5s OSError socket timeout should prevent hangs if someone can figure out how to change the default timeout & recompile. My thread attempt was pretty simple, put getaddrinfo in a thread, wait for 5s in the main program then move on if the thread had not produced a DNS by then. Instead the main program stalled after 1 iteration of the 5s delay loop and waited for the thread.
    • O

      http post requests
      Getting Started • urequests post codesample • • oglucio  

      16
      1
      Votes
      16
      Posts
      1356
      Views

      J

      @oglucio it would be difficult to get the same error if you applied the fix given in that post. Can you post the error and the corresponding line of your code?
    • N

      HTTPS Post Type Error with urequests
      FiPy • urequests • • noviniumJeef  

      1
      0
      Votes
      1
      Posts
      237
      Views

      No one has replied

    • K

      OSError: -29312
      MicroPython • oserror urequests • • kjm  

      2
      0
      Votes
      2
      Posts
      250
      Views

      M

      Where did you get the urequests library from? You'll need to check the source code and search for that error code.
    • K

      JSON posts
      Support & Troubleshooting • micropython urequests requests • • kjm  

      4
      0
      Votes
      4
      Posts
      898
      Views

      E

      @kjm Line 52 doesn't seem to be related to datapayload, so i suppose that data = ujson.dumps({"post_wrapper":payload})) do the work. I don't know what OSError 128 mean but the line seem to be related to networking. Does your software have do correctly the connect with your wifi hotspot before trying to send your request ?
    • S

      Invalid json returned by urequests get
      Discussion • urequests json http get • • sprasad  

      7
      0
      Votes
      7
      Posts
      1569
      Views

      K

      @paul-thornton I got that sorted by modifying line 53 in urequests as per a suggestion I found online somewhere Paul. I could really use some help withhttps://forum.pycom.io/topic/4014/gpy-in-deep-sleep though.
    • S

      Not able to do GET using urequests library
      Discussion • urequests http get • • sprasad  

      4
      0
      Votes
      4
      Posts
      1272
      Views

      L

      Hi, could you please tell me where can I find the urequests.py
    • M

      Gpy + Pysense - urequests AttributeError: 'module' object has no attribute 'get'
      GPy • gpy urequests http get urequest.py psense • • madeira199  

      7
      0
      Votes
      7
      Posts
      1983
      Views

      M

      @seb Everything work fine, after sync again! Thank you very much
    • A

      urequests with ussl causes an OSError
      MicroPython • oserror urequests post • • ahmedkalnaggar  

      6
      1
      Votes
      6
      Posts
      2290
      Views

      D

      @this-wiederkehr You've got the point. I've tried this and finally, it works without any error. Thanks a lot.
    • 1 / 1