#Directus SDK dont whant to work with local host

26 messages · Page 1 of 1 (latest)

teal umbra
#

In following ss there is error which shows me , that the sdk cant connect to localhost:8055 while when i click on url everything works fine. Any idea whats the reason of this?

crystal kayakBOT
#

Thanks for posting! This is a community powered server, so you may or may not get an answer based on available help and expertise. To increase your chances of somebody being able to help you, please help us help you making sure you:

  • Adding an explanation of exactly what you're trying to achieve.
  • Adding any and all related code or previous attempts.
  • Describing the exact issue or error you are facing.
  • Posting any screenshots if applicable.
  • Reading through https://stackoverflow.com/help/how-to-ask.

When you're done with this thread, please close it. Thanks! ✨

(If you have a support agreement and need help, please contact the core team via email.)

versed girder
#

What's the exact url you're passing to the SDk?

versed girder
#

hmm

#

try removing the trailing slash

#

not sure if that matters or not

teal umbra
#

http://localhost:8055 this not works too

versed girder
#

but if that doesn't fix it - maybe some kind of networking issue

#

I've not seen this error before when using the SDK

#

Are you sure your Directus API is running?

teal umbra
#

sdk just cant connect

versed girder
#

maybe it's some kind of resolution error then - could be an issue where your running directus at 0.0.0.0:8055
and the SDK is trying localhost:8055

teal umbra
#

0.0.00:8055 is unavailable

#

It event doesnt matter

#

Okay , it works idk why. but 0.0.0.0:8055 works

#

But befor

#

localhost:8055

#

Works too