PricingDocsAcademy
Bluesky ...
Fri, Dec 13, 8:33 AM

Error during authentication

  • /attachments/1291130476622250034/1291130476819648584/toddle_auth.png

    RehLifeMonkey

    2 months ago

    Hello everyone,

    As a newbie to Toddle, I'm in the process of building my first small but nice app with Toddle. As backend I use a self-hosted version of directus (11.1.0). During user authentication (login) to get an access token, I always get an error message “error code: 1003. After some trial and error, I found out that this only occurs with an API call from Toddle. Both mocks with SoapUI or other web apps work without problems.

    Have any of you ever had this behavior or maybe even know the solution to this problem?
  • Max

    2 months ago

    I am guessing it is the CORS config in directus. What is the error you get in the browser console?
  • RehLifeMonkey

    2 months ago

    Im using the the default CORS config in directus and changed nothing. In the browser i also get an error code 1003.
  • RehLifeMonkey

    2 months ago

    And I can't even find a call in the logs from my directus server. It seems that the call from toddle is not even getting through to directus.
  • Max

    2 months ago

    What is the exact error from the browser console and the network tab? A screenshot helps
  • /attachments/1291130476622250034/1291655054943850577/toddle3_console.png

    RehLifeMonkey

    2 months ago

    Sorry. here some screenshoots from the console and the network tab
  • Max

    2 months ago

    Can you try switching the proxy off in toddle?
  • RehLifeMonkey

    2 months ago

    Thank you for your help. I found the error myself: The SSL certificate for the directus server was faulty and therefore no secure connection could be established. Toddle then rejected the connection because, understandably, no connection can be established from HTTPS to HTTP.
    👍1
  • Tod

    2 months ago

    Great energy @RehLifeMonkey! Your continuous contribution to the toddle Community just made you advance to Community Level 1!

Stop scrolling. Start building.

toddle is a visual web app builder that rivals custom code — but accessible to your entire team!

Try toddle — it's free!

© Copyright 2024 toddle. All rights reserved.