error The remote server returned an error: (403) Forbidden.

  • fcworkgroup
    Asked on July 10, 2019 at 7:09 AM

    Good morning

     

    I'm having this error in my jotform solution

     The remote server returned an error: (403) Forbidden.

    just after this line

    HttpWebResponse resp = (HttpWebResponse)req.GetResponse();

     

    Few minutes ago I was working without problems.

    Can you help me to understand wht's happening?

     

    thanks

    regards

     

  • jherwin
    Replied on July 10, 2019 at 8:35 AM

    Are you trying to pull or download submissions data through API?

    If so, please check your privacy settings. You would need to lift privacy settings in your account, which require a login to review/download files, here is the link: https://www.jotform.com/myaccount/settings
    1562761827upload Screenshot 10

    Please give it a try and let us know how it goes.

  • fcworkgroup
    Replied on July 10, 2019 at 9:11 AM

    Hi


    yes we are working with jotform api and we developed a solution to download submissions


    with the url

    https://api.jotform.com/v1/user/forms?limit=1000


    we get this response

    {"responseCode":401,"message":"You're not authorized to use (\/user\/forms) ","content":[],"duration":"5ms","info":"http:\/\/api.jotform.com\/docs#user-forms"}

    few minutes ago every thing was working fine and we did'nt change the user setting

    what does Require log-in view uploaded files do and why was working before


    thanks for your helping

  • jherwin
    Replied on July 10, 2019 at 9:55 AM

    Please try to generate a new API key with full access and include that to the API commands.

    Guide: How-to-Create-a-JotForm-API-key

    You can also view our API docs for more details: https://api.jotform.com/docs/

    Your API link should look like this: https://api.jotform.com/user/forms?apikey=PUTYOURAPIKEYHERE