Skip to content

Bug saveDataLastPage #51

@BastienBlain

Description

@BastienBlain

Hi there,
I thank you very much for having developed this experience sampler - it really is easy to use the documentation to customise it. It's fantastic!

I have been struggling with the saving for a full week though.
I followed the template and the github instruction to use the google solution to save the data.
However, there are (at least) two problems in my case:
(1) a bug when calling the saveDataLastPage:

Uncaught TypeError: Illegal invocation
at e (jquery-2.1.3.min.js:4)
at Ac (jquery-2.1.3.min.js:4)
at Function.n.param (jquery-2.1.3.min.js:4)
at Function.ajax (jquery-2.1.3.min.js:4)
at Object.saveDataLastPage (index.js:571)
at Object.renderLastPage (index.js:400)
at Object.recordResponse (index.js:538)
at HTMLButtonElement. (index.js:286)
at HTMLButtonElement.dispatch (jquery-2.1.3.min.js:3)
at HTMLButtonElement.r.handle (jquery-2.1.3.min.js:3)

(2) no new sheet is created .

There is no bug when I run the google app script. I created a new google app script with variables I defined in it: it perfectly works to create a new sheet or to write some content in the database sheet.

If I create manually a sheet with the ID name, and if I write 'get' instead of 'post' as a type in the saveDataLastPage, there is no bug reported in the chrome console, and data are written in the google sheet. But I still need that a new ID sheet is automatically created.

I noticed that the functions to save the data are different in the example script (using 'get' and not 'post', which I think is not writing content, and using the JSON function on localStore), but I think that these are for another purpose.

Any idea of what the issue could be?

Thanks a lot!
Bastien

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions