Error during authentication

  • reallifemonkey-1291130476622250034

    RehLifeMonkey

    5 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?
    1291130476819648584-
  • max.kayr-1291147785487384711

    Max

    5 months ago

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

    RehLifeMonkey

    5 months ago

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

    RehLifeMonkey

    5 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.kayr-1291650493386457091

    Max

    5 months ago

    What is the exact error from the browser console and the network tab? A screenshot helps
  • reallifemonkey-1291655055874723870

    RehLifeMonkey

    5 months ago

    Sorry. here some screenshoots from the console and the network tab
    1291655054943850577-
    1291655055203635240-
    1291655055451095082-
    1291655055698825258-
  • max.kayr-1291667565940314132

    Max

    5 months ago

    Can you try switching the proxy off in toddle?
  • reallifemonkey-1291719364235497536

    RehLifeMonkey

    5 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-1291719366362267722

    Tod

    5 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.