3 Days before, All of my Apps that using TinywebDB has problem as bellow. Those Apps are not use HTML or PHPs. When Blocks to getvalue, it is not working. I am trying to fix it and visit many web site. and I could not get any solution.
Please help Me~~~
Thank you very much to pay attention.
I confirmed GCP already and I could not find how to fix it.
I tried with P/C emulator, my Mobile phone, and others Mobile Phone, and Other Applications that I made.
All of my Apps made by me have same problem. So I could not find how to solve it.
It might be GCP system because it happened to all my Apps that I made when I want getvalue with Tinyweb thru Applications. It never happened I mentioned. Steel I can not edit my Apps thru MIT AI2 because to many block asking Getvalues. If it happened only a App that I made, then I can Edit other Application. Is anyone has solution ?
Please help me.
Hi~
When I start my applications,
case A-> 1st, Log-in and Getvalue from tinywebdb and it is not connect to sever.
case b-> some of menu asks to Getvalue as as avove.
In case A, B are same problem.
So I think that it not AI2 matter, its GCP's problem. All of my Apps that I made send me same
message bellow.
All of my Apps, before last Saterday had no problem. And I asked to Google agent and waiting reply for it.
Hi~
I am re-writing for reply.
GCP = Google Cloud Platform and Project, Datastore as sample as bellow.
When app call getvalue(tag) and value, shows Error message as I mentioned.
I am running tinywebdb sevice from GCP.
I do not understand that "a full app Inventor".
You mean that AI2? Then Yes.
I do not understand clearly what u say.
--> are you using the MIT App Inventor server for your apps or your own app inventor server ?
I am using GCP, Google Cloud Project(tinywebDB), DataStore. I have no my own server.
I confirmed that a Tinywebdb over 10,000 records. and I deleted more than 1000 records just before to confirm whether there is a limit entities.
After delete records, My app shows same message.
I think that there is no problem for Apps. and Using GCP and Tinywebdb might be problem to fix it.
Hi ^,^
I tried so many time to fix my Apps.
I am still in problem, I have no idea for that.
I think It's GCP system's matter, because it's showed same for Other apps that I made long times before.
And I am reviewing GCP's authorization for me, but I have no solution for that. Is anybody to got this problem? Please let me Know to fix it~~~~
And I appreciate TIMAI2.
Hi~~~
I am happy to fix it.
It caused GCP Project account matter.
But I can not explain in detail.
When someone met same as I were in trouble,
U must confirm GCP Projects Accounts(?).
I experienced the same problem when using Tinywebdb.Getvalue()
I explored the source code from GitHub and I guessed there's a bug on the postCommandReturningArray() method on the file appinventor/components/src/com/google/appinventor/components/runtime/util/WebServiceUtil.java
Btw, I don't understand much about Java, all by trial and error.
So, I made a new custom extension based on appinventor/components/src/com/google/appinventor/components/runtime/TinyWebDB.java
In the new extension, I replaced postCommandReturningArray() in GetValue() function with postCommand(), as used by the Storevalue() function.
It has been successful, although in the GotValue event became has no tagFromWebDB parameter. But it's no problem, I still can read the response from the server and manipulate it.
I am still testing this extension, I will publish it later.
This is the main modification:
// Replace this.....
// WebServiceUtil.getInstance().postCommandReturningArray(
// With this
WebServiceUtil.getInstance().postCommand(
serviceURL,
getCommand,
Lists.<NameValuePair>newArrayList(new BasicNameValuePair(TAG_PARAMETER, tag)),
myCallback);
return;