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

Views not working in testing mode #20

Closed
ErikBjare opened this issue Mar 12, 2017 · 6 comments
Closed

Views not working in testing mode #20

ErikBjare opened this issue Mar 12, 2017 · 6 comments

Comments

@ErikBjare
Copy link
Member

ErikBjare commented Mar 12, 2017

First off, it simply didn't work, so I got hold of the request URL from the aw-server log and found the response to be:

URL: http://127.0.0.1:5666/api/0/views/aw-webui_windowactivity_summary_erb-main2-arch%3Flimit=-1&start=2017-03-12T00%253A00%253A00%252B01%253A00&end=2017-03-13T00%253A00%253A00%252B01%253A00

{
    "msg": "There's no view with the name 'aw-webui_windowactivity_summary_erb-main2-arch?limit=-1&start=2017-03-12T00%3A00%3A00%2B01%3A00&end=2017-03-13T00%3A00%3A00%2B01%3A00'"
}

So, after handcrafting the URL into the following I get another error:

URL: http://127.0.0.1:5666/api/0/views/aw-webui_windowactivity_timeline_erb-main2-arch?limit=-1&start=2017-03-12T00:00:00%2B01:00&end=2017-03-13T00:00:00%2B01:00

{
    "msg": "Cannot query bucket that doesn't exist in transform: 'aw-watcher-window_erb-main2-arch'"
}

And indeed, aw-watcher-window does not exist since I'm running in testing mode, surely it should work in testing mode as well.

And also, "that doesn't exist in transform" confused me, I thought the bucket was not in the transform, which made no sense to me. Now I realize that what the message tried to say was that the bucket specified in the transform does not exist in the database, which makes sense.

@ErikBjare
Copy link
Member Author

Everything seems to work fine in non-testing mode btw.

@ErikBjare ErikBjare changed the title Views not working Views not working in testing mode Mar 12, 2017
@johan-bjareholt
Copy link
Member

This is not a issue with aw-server, but with aw-webui. Apparently somewhere aw-webui does something bad so the view is created with the wrong name or fails to get created at all. I am currently re-writing a lot of that code so let's just wait and see if my next pull request will fix it.

@johan-bjareholt
Copy link
Member

This should not be an issue anymore, can i close it?

@ErikBjare
Copy link
Member Author

I'm getting a 500 error with {"msg": "Cannot query bucket that doesn't exist in transform: 'aw-watcher-window_erb-laptop-ubuntu'"} as response when opening http://127.0.0.1:5666/#!/activity/erb-laptop-ubuntu. I'm assuming this is due to doing bucket lookup in some weird way and not using the testing bucket when in testing mode.

@johan-bjareholt
Copy link
Member

Oh, just realized that it's only fixed in dev/next. We can keep this issue open until that is merged.

@ErikBjare
Copy link
Member Author

This is fixed, closing.

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