Skip to content
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

RemoteAPIに対応してほしい #18

Open
anchan828 opened this issue Apr 9, 2013 · 3 comments
Open

RemoteAPIに対応してほしい #18

anchan828 opened this issue Apr 9, 2013 · 3 comments

Comments

@anchan828
Copy link

現在、RemoteAPIでEntityを取得するとKey以外は全部nullが返って来て使用することが出来ない状態です。

なんとかなるのであればRemoteAPIに対応して欲しいとです(´・ω・`)

@vvakame
Copy link
Owner

vvakame commented Apr 9, 2013

( ´゚д゚`)エーなにそれ………
お父さんこんなざっくりしたバグチケ切るように教育した覚えありませんよ!!(話がそれた

@anchan828
Copy link
Author

AppEngine SDK 1.7.5
appengine-remote-api.jar 1.7.5に入ってるやつ

こんなかんじで呼び出すと

        RemoteApiInstaller remoteApiInstaller = install("mail", "password", "*.appspot.com");
        UserMeta meta = UserMeta.get();
        List<User> asList = Datastore.query(meta).asList();
        for (User user : asList) {
            System.out.println(UserMeta.get().modelToEntity(user));
        }
        remoteApiInstaller.uninstall();

null(´・ω・`)

<Entity [User(334)]:
    cipherKey = null (unindexed)
    favoriteUsers = [] (unindexed)
    googlePlusID = null
    legacyID = 0
    facebookID = 0
    googlePlusName = null (unindexed)
    twitterName = null (unindexed)
    deleted = false (unindexed)
    twitterID = 0
    joined = 0 (unindexed)
    facebookName = null (unindexed)
    totalGameCount = 0
    sv = 1
    favoriteGames = [] (unindexed)
    activeAccount = null (unindexed)
>

Log

2013-04-10 01:07:59.287 /remote_api 200 18ms 1kb Jakarta Commons-HttpClient/3.1
60.236.226.178 - anchan828 [09/Apr/2013:09:07:59 -0700] "POST /remote_api HTTP/1.1" 200 1616 - "Jakarta Commons-HttpClient/3.1" "new-unitygames.appspot.com" ms=19 cpu_ms=0 cpm_usd=0.000181 instance=00c61b117cedbaba24936f3f074d120c1427b1
D 2013-04-10 01:07:59.279
com.google.apphosting.utils.remoteapi.RemoteApiServlet executeRequest: remote API call: datastore_v3, RunQuery

@vvakame
Copy link
Owner

vvakame commented Apr 10, 2013

API call: datastore_v3, RunQuery かー…。KeysOnlyに書き換えた後そっちのマージを待たずに結果を返しているのかな…。
暇を見つけて調査してみます。
debug modeの拡充が急がれる…。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants