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
Oct 2, 2024, 9:20 PM
I am guessing it is the CORS config in directus. What is the error you get in the browser console?
RehLifeMonkey
2 months ago
Oct 4, 2024, 6:25 AM
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
Oct 4, 2024, 6:27 AM
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
Oct 4, 2024, 6:37 AM
What is the exact error from the browser console and the network tab? A screenshot helps
RehLifeMonkey
2 months ago
Oct 4, 2024, 6:56 AM
Sorry. here some screenshoots from the console and the network tab
Max
2 months ago
Oct 4, 2024, 7:45 AM
Can you try switching the proxy off in toddle?
RehLifeMonkey
2 months ago
Oct 4, 2024, 11:11 AM
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
Oct 4, 2024, 11:11 AM
Great energy @RehLifeMonkey! Your continuous contribution to the toddle Community just made you advance to Community Level 1!