Project dependencies broken? (SOLVED)

Hi everyone,

It seems the project dependencies features that allows for having external libraries doesn’t work anymore.
I’ve just pulled a new copy of a project that has a dependency to:
http://www.defold.com/p/1008/48214/archive

and both editors fail at retrieving the archive file.

Did anything changed on this front recently?

Seems to be working fine for me. Make sure you are on the other projects team also.

Where is the dependency hosted? GitHub or our servers? If it’s a dependency to a project hosted by us you need to make sure that you still have access to it, like @Mattias_Hedberg pointed out.

Thanks for your replies.

I own both projects (main and library) and they are both hosted by your servers.

That’s the error I get when I open the project with Editor 1:

Error occurred when fetching libraries
The file obtained from http://www.defold.com/p/1008/48214/archive is not a valid zip file
The file obtained from http://www.defold.com/p/1008/48214/archive is not a valid zip file

I get the same error now. Also from a project that is on Defold servers.

Hi @Nicolas_Darques – we made the switch from http to https a few weeks ago. We are currently investigating if this is the cause.

1 Like

Hi, @Nicolas_Darques. Try changing the protocol on the dependency to https:// and see if it works. It should work with both though

In editor 2 both seems to work but I had to change it to “https” to make it work in editor 1.

Oh, that’s definitely to do with our switch to https then. Good that it works by changing the protocol in editor 1 anyway. I’ll investigate how to fix it.

Did this just stop working this morning, do you know @Mattias_Hedberg @Nicolas_Darques? Was it working earlier this week?

The issue is fixed now. It was caused by a change on the server that was released yesterday, I rolled back to how it was before now.

So now http:// will work in editor 1, but https:// will NOT work in editor 1 anymore, so make sure you change back to http:// if you tried it @Mattias_Hedberg @Nicolas_Darques

2 Likes

Thanks Samuel,

I don’t know when It stopped working.
Only pulling a new copy of this project yesterday evening on a workstation that was not used previously with Defold.
I tried again from a fresh slab and it works well again for both editor.

Interestingly enough Editor2 was failing at import to retrieve the dependencies and was showing a pop-up to explain how to retrieve dependencies ‘when back online’. It was then failing silently with no log whatsoever when using directly the fetch libraries command from the menu.

2 Likes

Thanks for solving the problem!
Yesterday was this problem with my another defold project as a library.
Today all work fine.

2 Likes