64studio / pdk

64 Studio Platform Development Kit
GNU General Public License v2.0
20 stars 8 forks source link

"pdk pull" does not follow http redirects #51

Closed obbardc closed 5 years ago

obbardc commented 5 years ago
$ pdk pull components
http://pdk.64studio.net/channels/debian/testing//etc/schema
|------------------------------------------------------------|
pdk ERROR: Operation cannot be performed: Remote workspace has invalid schema number.

This is due to the pdk file server having a redirect from http => https. For now I have modified the server configuration to not redirect to https if the useragent is set to "pdk" for backwards compatibility.

Here is the option we possibly need to enable for all curl calls: https://www.programcreek.com/python/example/3074/pycurl.FOLLOWLOCATION

obbardc commented 5 years ago

see #34 for the last time https got us :-)