Demo App myfavoritedrinks

33 views
Skip to first unread message

Alexander Crössmann

unread,
Jun 1, 2013, 10:17:49 AM6/1/13
to unho...@googlegroups.com
Hi,

the demo app "myfavoritedrinks" seems not to work with the current version of remotestorage (0.7.2). Is that true, or is it me doing something wrong? I try to use it as a "template" for my own app. It would be very helpfull if someone could port it to the current remotestorage version.

Alex

Nick Jennings

unread,
Jun 1, 2013, 4:18:42 PM6/1/13
to unho...@googlegroups.com
Hi Alexander, could you let me know what problems you're having and where you are running the app from?

I just checked on: https://myfavoritedrinks.5apps.com/ and it seems to be working fine for me, no errors, and my existing drinks are still being populated correctly.

Cheers
Nick
 


--
 
---
You received this message because you are subscribed to the Google Groups "Unhosted Web Apps" group.
To unsubscribe from this group and stop receiving emails from it, send an email to unhosted+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Alexander Crössmann

unread,
Jun 1, 2013, 5:06:46 PM6/1/13
to unho...@googlegroups.com
Hi Nick,

the version on https://myfavoritedrinks.5apps.com/ is using 0.7.0.

I took the code from github () and substitutet the remotstorage.js file with the 0.7.2 one from this place the site. I hosted the files on my local apache (Ubuntu 13.04 - 32Bit).

With Firefox I get the following errors in the console:

The Components object is deprecated. It will soon be removed. @ resource://sharemenot-at-franziroesner-dot-com/api-utils/lib/cuddlefish.js -> resource://sharemenot-at-franziroesner-dot-com/api-utils/lib/sandbox.js -> resource://sharemenot-at-franziroesner-dot-com/api-utils/lib/content/content-proxy.js:14

WARNING: remoteStorage.onWidget is deprecated, use remoteStorage.on instead.

I get this error from the widget
{
  "path": null,
  "source": "sync",
  "message": 500
}
"asyncGroup part failed:  500" in the console

Alex



2013/6/1 Nick Jennings <ni...@silverbucket.net>

Nick Jennings

unread,
Jun 1, 2013, 6:52:14 PM6/1/13
to unho...@googlegroups.com
On Sat, Jun 1, 2013 at 11:06 PM, Alexander Crössmann <alexander....@gmail.com> wrote:
Hi Nick,

the version on https://myfavoritedrinks.5apps.com/ is using 0.7.0.


Oh, of course :) just assumed it had been updated.

 
I took the code from github () and substitutet the remotstorage.js file with the 0.7.2 one from this place the site. I hosted the files on my local apache (Ubuntu 13.04 - 32Bit).

With Firefox I get the following errors in the console:

The Components object is deprecated. It will soon be removed. @ resource://sharemenot-at-franziroesner-dot-com/api-utils/lib/cuddlefish.js -> resource://sharemenot-at-franziroesner-dot-com/api-utils/lib/sandbox.js -> resource://sharemenot-at-franziroesner-dot-com/api-utils/lib/content/content-proxy.js:14

WARNING: remoteStorage.onWidget is deprecated, use remoteStorage.on instead.

I get this error from the widget
{
  "path": null,
  "source": "sync",
  "message": 500
}
"asyncGroup part failed:  500" in the console


You should be able to replace onWidget with displayWidget

remoteStorage.displayWidget('remotestorage-connect');


For a more up-to-date example, you could try this noBackend example I made last week using 0.7.2

http://invoice.nobackend.org/nobackend-examples/remoteStorage-Sockethub/index.html

https://github.com/noBackend/noBackend-app-invoice/
 

Nick Jennings

unread,
Jun 1, 2013, 9:33:54 PM6/1/13
to unho...@googlegroups.com
Hi Alexander,

 I think I misunderstood your issue. Just tried things out on my end and had to make several adjustments to get the myfavoritedrinks app working. Normally there wouldn't need to be changes in the app to use a new minor version of the library, we're trying to be more disciplined about this in the future. :)

Though I still get an error when I remove a drink sometimes:
  1. Error in 'change' event handler:
    DOMException {message: "NotFoundError: DOM Exception 8", name: "NotFoundError", code: 8, stack: "Error: An attempt was made to reference a Node in … (http://localhost:8000/remoteStorage.js:5156:11)",INDEX_SIZE_ERR: 1}
    remoteStorage.js:655
    1. (anonymous function)remoteStorage.js:655
    2. (anonymous function)remoteStorage.js:582
    3. fireModuleEventremoteStorage.js:4758
    4. (anonymous function)remoteStorage.js:5156
    5. notifyConsumerremoteStorage.js:897
    6. (anonymous function)remoteStorage.js:945

Maybe someone else has some idea of what this is? I've never seen it before, maybe it was just a temporary issue with corrupt data on my end..

Other than that, everything is working fine now.

Hope this helps,
Nick



Alexander Crössmann

unread,
Jun 2, 2013, 7:19:01 AM6/2/13
to unho...@googlegroups.com
Hi Nick,

with your version I still get that "The Components object is deprecated. It will soon be removed." warning.

In addition, the deleting of an item is not working. When I click on the "x" to delete an item I get the following lines in the console:

[10:48:17.829] [GETPUTDELETE] -- info  GET https://storage.5apps.com/laxas/myfavoritedrinks//
[10:48:17.998] GET https://storage.5apps.com/laxas/myfavoritedrinks// [HTTP/1.1 200 OK 65ms]

No errors, however, the item does not disappear.

Could that be a problem with 5apps not supporting 0.7.2? I have issues with the github version of litewrite, too. And that is using 0.7.2, too.

Alex.

Nick Jennings

unread,
Jun 2, 2013, 7:15:29 PM6/2/13
to unho...@googlegroups.com
You're right, I tried this on 5apps ran into a few different problems.

First, when I tried to remove an entry I got an error about missing 'replace'.

Then I tried the invoice.nobackend.org app, with 5apps, and got:
http://i.imgur.com/Dl8MiPZ.png

When I tried with heahdk.net I didn't get the same problem.

Hey Sebastian, any idea if there's some incompatibility issues? Or what this could be?


Cheers
Nick



Sebastian Kippe

unread,
Jun 4, 2013, 8:22:17 AM6/4/13
to unho...@googlegroups.com
Hi,

On Jun 3, 2013, at 1:15 AM, Nick Jennings <ni...@silverbucket.net> wrote:

You're right, I tried this on 5apps ran into a few different problems.

First, when I tried to remove an entry I got an error about missing 'replace'.

Then I tried the invoice.nobackend.org app, with 5apps, and got:
http://i.imgur.com/Dl8MiPZ.png

When I tried with heahdk.net I didn't get the same problem.

Hey Sebastian, any idea if there's some incompatibility issues? Or what this could be?

There's no compatibility problem. 500s should never appear anywhere. We ran into a performance/config issue with Riak.

We just fixed it manually, and we'll try to make sure it doesn't happen again.

I do however have other problems with the invoice example now:

* Synced invoice objects don't appear in the dropdown list (worked fine for me before)
* Syncing only works manually. remotestorage.js doesn't seem to do it automatically

Cheers
Sebastian

P.S.: It would be great if we would discuss these things on the forums, so that it's easy for other people to find: http://community.remotestorage.io/ – and if you encounter problems with 5apps services, you'll get the quickest response on http://help.5apps.com or with direct emails to sup...@5apps.com
Reply all
Reply to author
Forward
0 new messages