Patreon / patreon-java

Interact with the Patreon API via OAuth
Apache License 2.0
52 stars 26 forks source link

java.util.UnknownFormatConversionException: Conversion = 'D' #2

Closed corgrath closed 6 years ago

corgrath commented 7 years ago

In API.java the code is:

public JSONObject fetchPageOfPledges(String campaignID, int pageSize, String cursor) {
String url = String.format("campaigns/%s/pledges?page%5Bcount%5D=%s", campaignID, pageSize);

Which triggers

java.util.UnknownFormatConversionException: Conversion = 'D'

Due to %5D in String.format.

corgrath commented 7 years ago

Same problem for the row

url.concat(String.format("&page%5Bcursor%5D=%s", escapedCursor));

adamint commented 6 years ago

The pull request I made will have fixed this.

emosesPatreon commented 6 years ago

Closing, was fixed in 99f9372466c5647ebca1e0e52d9242287c4f21d9