kartaview / upload-scripts

Uploader tools for KartaView
MIT License
59 stars 30 forks source link

oauth failure with docker, upload_photos_by_exif #59

Closed rwelty1889 closed 5 years ago

rwelty1889 commented 6 years ago

MacOS 10.13.5, Docker 18.03.1-ce-mac65

i clip out the provided URL, enter it into my browser and click on Grant, and get the Authorization request allowed screen. i return to the terminal window and press enter and am informed that oauth has failed:

rwelty$ docker run -it --rm -v "$IP":/data openstreetcam/upload_photos_by_exif

For login go to this URL in your browser: http://www.openstreetmap.org/oauth/authorize?oauth_token=af3xUy44YkyTAZ611Se0KbPkcCX54BafhUlh1WvG Login and grant acces then press ENTER

"Decoder failed to handle oauth_token with data as returned by provider. A different decoder may be needed. Provider returned: b''" ERROR LOGIN no GRANT ACCES

rwelty1889 commented 5 years ago

behavior unchanged 10 days later.

bogdans-telenav commented 5 years ago

@rwelty1889 sorry for the late replay. It looks like you are using a old version of the scrips. I am figuring this out from the URL you posted in your previous message. The URL should be https. This was fixed 2 months ago.

rwelty1889 commented 5 years ago

ok, but i'm using the url from the directions in the readme here on GitHub. maybe you should make sure those are up to date.

rwelty1889 commented 5 years ago

ok, the only url in the process is the one that is spit out by docker for me to enter into my browser. i changed it to https and got no change in behavior.

rwelty1889 commented 5 years ago

tried clearing my docker cache and images. no change in behavior.

bogdans-telenav commented 5 years ago

@rwelty1889 i will look into it more next week.

rwelty1889 commented 5 years ago

any progress?

rwelty1889 commented 5 years ago

?

bogdans-telenav commented 5 years ago

Sorry not yet.

alexandrui-telenav commented 5 years ago

@rwelty1889 , unfortunately the original maintainer of the scripts is no longer involved in the project. Bogdan does some maintaining on the side but didn't look into this deep enough, it seems.

He's now in vacation for 2 weeks, if another user won't jump in to take a look it will take a while to see what's going on..

rwelty1889 commented 5 years ago

i've refrained from making suggestions while you work through your process. but since the first reaction i got was that i was using outdated code, my first guess would be that the docker instance(s) didn't updated with the last round of bug fixes. but that's just a guess, i'm no docker expert, just a novice docker user.

rwelty1889 commented 5 years ago

note that i am on vacation until sunday and wouldn't be able to try anything until i get home anyway.

rwelty1889 commented 5 years ago

finally got to where i could try a native install with python 3.4 from macports and it is working. i can do this for a while, but switching back and forth between 2.7 and 3.4 is going to be a real pain, would love to see the docker version work correctly.

alexandrui-telenav commented 5 years ago

good to hear @rwelty1889 , bogdan will come back soon and look into this

bogdans-telenav commented 5 years ago

@rwelty1889 started work on this. I will keep you posted.

bogdans-telenav commented 5 years ago

We made major changes to the upload scripts, unfortunately we temporary removed Docker support. Thanks for your patience! If you find any problem with the new version please create an issue and we will address it as soon as possible.