Android Question (ErrnoException) android.system.ErrnoException: open failed: ENOENT (No such file or directory)

Discussion in 'Android Questions' started by zavaree, Aug 29, 2019.

  1. zavaree

    zavaree Active Member Licensed User

    Hello
    I Have this Error Since Yesterday And My Jobs In B4a Dont Work Even Simple One

    I Check My PhpPage I Dont Have Any Error And I Check EveryThing You Imagine Do You Have Any Solution

    Or Do You Know This Error Whats About?
     

    Attached Files:

  2. Erel

    Erel Administrator Staff Member Licensed User

    Please post the error message as text. Where does it come from? Where is the relevant code?
     
  3. nibbo

    nibbo Active Member Licensed User

    Not sure if yours is the same problem that I had.
    My app fires off a quick http request to make sure my webservice was reachable.
    I also use AppUpdater to check for a new version of my app which runs almost immediately after.
    AppUpdater uses http requests also and think they must have clashed somewhere...

    To fix it I just use a Wait For on my first request like this:

    Code:
    '    blip the webservice to see if we can reach it
        Log("Checking access")
        
    Dim jobCheck As HttpJob
        jobCheck.Initialize(
    "CheckAccess", Me)
        jobCheck.PostString(webSite, 
    "Function=CheckAccess)
        Wait For (jobCheck) JobDone(jobCheck As HttpJob)
        
    If jobCheck.Success Then
            
    Msgbox("You do not appear to have a connection to xxxxxx at the moment. Please try again later","Warning")
            
    Activity.Finish
            
    Return
        
    End If
        jobCheck.Release
    Hope this helps...
     
  4. KMatle

    KMatle Expert Licensed User

    I assume you release your jobs too soon. With release the file OkHttpUtils uses will be deleted. If you try to access something like Job.GetString it doesn't find the file the file the data was saved to.

    Please check. I had this at the very first beginning.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice