-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PhotoPost by source url don't get saved in "queued" state #89
Comments
do what they should do. The posts end up being a draft, private or published but never queued which, coincidentally, is the only state I am interested in :( |
Interesting. I do pretty much the same and it works fine for me. In fact when testing, I post to the queue, then in "production" I post to "published". There are a few differences though. I just reviewed where I create the post and I use:
The only difference, supposedly, between PhotoPost and a PhotosetPost is that with a PhotosetPost you can post more than one photo. But the differences in the classes is that Photoset just extends the PhotoPost with three additional interfaces: addPhoto, addSource, addData. In my case the PhotosetPost is surrounded by a try/catch but I catch all exceptions, i.e.:
and the save is surrounded by the try catch as follows:
in my case though this is done because the creation and adding of fields and the final saving is done in different parts of the code. it shouldn't make any difference, but does it work with a PhotosetPost? |
The location of the catches shouldn't make a difference really as there weren't any exceptions thrown so far but you said so yourself. :) I tried your suggestion but sadly, the symptoms remain the same. Any post where the state is set to "queue" goes online as "published". Here is the code at the moment with your suggestion:
I included the constructor in case I do something wrong there. But authentication, connection etc doesn't seem to be an issue. It is really curious. |
OK, Just a really, really stupid, non technical, question here. How many entries do you currently have in your Tumblr Queue? |
47 which I pushed over there by hand from my drafts |
@Linus12 can I ask you, what version of Java you are using? And I assume you're using jumblr release 0.11? |
@Tickeldi currently using Java version: 1.8.0_73 But changes I made shouldn't have any affect on the state of a post. I should also add that my current builds use org.scribe version 1.3.5 (current build is 1.3.7) I downloaded these when I started my first project and haven't updated them since. (Maybe I should?) Have you tried debugging and verifying a) the actual state just prior to the save, as well as the return response from the save? I had to do this to figure out some obscure error/warning messages that were never returned by Jumblr (or were so obfuscated that the actual error was "lost in translation"). |
I'm using java version "1.8.0_74" on linux. I'm also using gson 2.5 but this shouldn't have an influence on jumblr really. |
Here. https://github.com/Tickeldi/jumblrError. Libraries are included.
|
Can you try setting the state to According to the API docs for the
|
Thanks. I feel like an idiot. Firstly, I oriented myself at the actual tumblr api, thinking that the states would be the same here:
And I did not look closely enough at the api-docs. Also I am sure I tried this before and it didn't work. Maybe I did something else wrong at that time because NOW it WORKS. THANK YOU |
No worries, I'm glad it works for you now! |
Hey. I am not sure what I am doing wrong here. Everything works fine except that my posts are getting saved in a published state instead of queued. No exceptions are thrown.
This is my method.
The output is:
The text was updated successfully, but these errors were encountered: