Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
 
Answered
Hello World Example failing at q2 install

Hey Q2,

I'm going through the first Hello World example. All commands run fine until I run q2 install. I'm able to naviagrte through the options to select the extension and what groups will have access. Once I enter those options, I run into the error below related to an invalid stored procedure parameter. See below:

Traceback (most recent call last):
  File "/home/bellcha/sdk/avadian/.env/bin/q2", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/bellcha/sdk/avadian/.env/lib/python3.11/site-packages/q2_sdk/core/q2.py", line 92, in main
    entrypoint_runner.execute()
  File "/home/bellcha/sdk/avadian/.env/lib/python3.11/site-packages/q2_sdk/core/cli/entrypoint_runner.py", line 203, in execute
    LOOP.run_until_complete(handle_coro)
  File "/usr/local/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/home/bellcha/sdk/avadian/.env/lib/python3.11/site-packages/q2_sdk/entrypoints/install.py", line 72, in handle
    await installer.install(param)
  File "/home/bellcha/sdk/avadian/.env/lib/python3.11/site-packages/q2_sdk/core/installers/online_installer.py", line 762, in install
    form_id = await self._install(install_params)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/bellcha/sdk/avadian/.env/lib/python3.11/site-packages/q2_sdk/core/installers/online_installer.py", line 360, in _install
    form = await form_obj.create(install_params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/bellcha/sdk/avadian/.env/lib/python3.11/site-packages/q2_sdk/hq/db/form.py", line 263, in create
    result = await self.call_hq('sdk_AddForm', _get_form_install_parameters(install_params))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/bellcha/sdk/avadian/.env/lib/python3.11/site-packages/q2_sdk/core/opentelemetry/span.py", line 53, in async_wrapper
    return await function(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/bellcha/sdk/avadian/.env/lib/python3.11/site-packages/q2_sdk/hq/db/db_object.py", line 71, in call_hq
    raise HqResponseError(f'HQ Request returned with error message: "{self.hq_response.error_message}"')
q2_sdk.core.exceptions.HqResponseError: HQ Request returned with error message: "@property_id is not a parameter for procedure sdk_AddForm."
Posted 2 years ago
Votes Newest

Answers


Hello,

That generally happens when you have not run q2 setup_db. I recommend updating to the latest version of the sdk and then running q2 setup_db.

-Trey

Posted 2 years ago
Trey Teter
489 × 4 Administrator
201 Views
1 Answer
2 years ago
2 years ago