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

Hello world fails with curl, ... item:e #304

Closed
ltaylor-digmap opened this issue Jun 15, 2015 · 1 comment
Closed

Hello world fails with curl, ... item:e #304

ltaylor-digmap opened this issue Jun 15, 2015 · 1 comment

Comments

@ltaylor-digmap
Copy link

(This was introduced to the cubes section Google forum by another user. I am using my own results text here to introduce it as an issue to be fixed. LAT)

Hello world example, current downloaded code except slicer.ini modified for debug, no reload.

C:\Development\cubes\examples\hello_world>curl "http://localhost:5000/cube/irbd_balance/aggregate?drilldown=item&cut=item:e"
{
"message": "Internal server error",
"hint": "Server administrators can learn more about the error from the error
logs (even more if they have 'debug' level)",
"error": "internal_server_error"
}

C:\Development\cubes\examples\hello_world>

Here is the window for slicer, with debug on:

C:\Development\cubes\examples\hello_world>slicer serve slicer.ini
2015-06-15 11:29:32,408 DEBUG Models root set to current directory
2015-06-15 11:29:32,411 DEBUG Workspace calendar timezone: None first week day:
0
2015-06-15 11:29:34,563 DEBUG Registered store 'default'
2015-06-15 11:29:34,565 DEBUG Loading model main
2015-06-15 11:29:34,565 DEBUG Importing model from model.json. Provider: None Store: None NS: None
2015-06-15 11:29:34,565 DEBUG Server authentication method: none

  • Running on http://localhost:5000/ (Press CTRL+C to quit)
    2015-06-15 11:29:57,648 DEBUG using mapper StarSchemaMapper for cube 'irbd_balance' (locale: None)
    2015-06-15 11:29:57,721 DEBUG prepare aggregation statement. cell: 'item@default
    :e' drilldown: 'item:subcategory' for summary: True
    2015-06-15 11:29:57,736 DEBUG no joins to be searched for
    2015-06-15 11:29:57,750 ERROR Internal Cubes error (InternalError): Unknown hier
    archy '('item', 'default')'. Hierarchies are not properly initialized (maybe missing default?)
    2015-06-15 11:29:57,755 DEBUG Exception stack trace:
    Traceback (most recent call last):
    File "C:\Python27\lib\site-packages\flask\app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
    File "C:\Python27\lib\site-packages\flask\app.py", line 1461, in dispatch_request
    return self.view_functionsrule.endpoint
    File "build\bdist.win32\egg\cubes\server\decorators.py", line 118, in wrapper return f(_args, *_kwargs)
    File "build\bdist.win32\egg\cubes\server\decorators.py", line 167, in wrapper retval = f(_args, *_kwargs)
    File "build\bdist.win32\egg\cubes\server\blueprint.py", line 350, in aggregate

    order=g.order)
    File "build\bdist.win32\egg\cubes\browser.py", line 155, in aggregate *options)
    File "build\bdist.win32\egg\cubes\sql\browser.py", line 401, in provide_aggregate
    for_summary=True)
    File "build\bdist.win32\egg\cubes\sql\browser.py", line 567, in aggregation_statement
    condition = context.condition_for_cell(cell)
    File "build\bdist.win32\egg\cubes\sql\query.py", line 948, in condition_for_cell
    condition = and
    (_self.conditions_for_cuts(cell.cuts))
    File "build\bdist.win32\egg\cubes\sql\query.py", line 966, in conditions_for_cuts
    hierarchy, cut.invert)
    File "build\bdist.win32\egg\cubes\sql\query.py", line 1004, in condition_for_point
    levels = self.level_keys(dim, hierarchy, path)
    File "build\bdist.win32\egg\cubes\sql\query.py", line 1092, in level_keys "default?)".format(e))
    InternalError: Unknown hierarchy '('item', 'default')'. Hierarchies are not properly initialized (maybe missing default?)

127.0.0.1 - - [15/Jun/2015 11:29:57] "GET /cube/irbd_balance/aggregate?drilldown
=item&cut=item:e HTTP/1.1" 500 -

ltaylor-digmap referenced this issue in ltaylor-digmap/cubes Jun 17, 2015
Also, miscellaneous corrections in messages and documentation.
@jjmontesl
Copy link
Contributor

I cannot reproduce this with current master. I'm closing this, please reopen if the issue persists after upgrading.

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