Podpora The Movie Database

In account endpoint, on every sub endpoint, it clearly states account_id is Optional whatsoever if it is omitted, and instead of let's say

/account/{account_id}/lists -> /account/lists

It will return the account's object rather than the lists, if you omit it without removing the slashes

/account/{account_id}/lists -> /account//lists you will get a 404

Is that the desired function? or is it a bug

2 odpovědí (na stránce 1 z 1)

Jump to last post

Technically the account id was not supposed to ever be optional. It was a typo that slipped into the new documentation when I moved everything over to Stoplight last year.

I've created a new ticket for me to truly make it optional here.

Chers.

I've noticed some strange and undesired behavior by the Service.

I'm a contributor at the tmdb-java Library by Uwe Trottmann. I made all the authentication mechanism as long with the account endpoint.

Before tests begin in account endpoint i'm initializing some ratings, and some favorites lists etc.

I run the tests and after that i'm rolling back the changes, Whatsoever, most of the times, (maybe due to the high request count?) even though i'm getting the created and success messages, While i'm querying the service for these data on account endpoint, i get empty results. which is odd.

https://github.com/ProIcons/tmdb-java You can see the library here, there's also a branch that i have integrated it with TravisCI

The failure was test_rated_tvShows Results were empty

> Content-Type: application/json; charset=UTF-8
> Content-Length: 13
> {"value":7.5}
> --> END POST (13-byte body)
> Access-Control-Allow-Origin: *
> Access-Control-Expose-Headers: ETag, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, Retry-After
> Cache-Control: public, max-age=0
> Content-Type: application/json;charset=utf-8
> Date: Tue, 30 May 2017 12:03:24 GMT
> Server: openresty
> X-RateLimit-Limit: 40
> X-RateLimit-Remaining: 19
> X-RateLimit-Reset: 1496145808
> Content-Length: 45
> Connection: keep-alive
> {"status_code":1,"status_message":"Success."}
> <-- END HTTP (45-byte body)

it happens most of the times, but NOT always.

https://travis-ci.org/ProIcons/tmdb-java/builds/237486120

Any idea what's causing this issue?

Here is the SuiteClass which Initializes the data. https://github.com/ProIcons/tmdb-java/blob/b79f63e2347ecb77750224e3df1fada378a776e7/src/test/java/com/uwetrottmann/tmdb2/TmdbTestSuite.java

and that's the AccountServiceTest https://github.com/ProIcons/tmdb-java/blob/b79f63e2347ecb77750224e3df1fada378a776e7/src/test/java/com/uwetrottmann/tmdb2/services/AccountServiceTest.java

Nemůžete nalézt film nebo seriál? Přihlaste se pro jeho vytvoření.

Globální

s zaměřit panel hledání
p otevřít nabídku profilu
esc zavřít otevřené okno
? otevřít okno klávesových zkratek

Na stránkách médií

b zpět (nebo na nadřazený záznam, pokud to jde)
e na stránku úprav

Na stránkách sezón

(šipka vpravo) na další sezónu
(šipka vlevo) na předchozí sezónu

Na stránkách epizod

(šipka vpravo) na další epizodu
(šipka vlevo) na předchozí epizodu

Na všech stránkách obrázků

a otevřít okno přidání obrázku

Na všech stránkách úprav

t otevřít výběr překladu
ctrl+ s odeslat formulář

Na stránkách diskusí

n vytvořit novou diskusi
w přepnout stav zhlédnutí
p přepnout veřejný a soukromý
c přepnout zavřít a otevřít
a otevřít aktivitu
r odpovědět na diskusi
l na poslední odpověď
ctrl+ enter odeslat zprávu
(šipka vpravo) další stránka
(šipka vlevo) předchozí stránka

Nastavení

Want to rate or add this item to a list?

Přihlásit se