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

[Eventgrid] Fix sample cs2_publish_custom_events_to_a_domain_topic #16042

Closed
rakshith91 opened this issue Jan 8, 2021 · 0 comments · Fixed by #16217
Closed

[Eventgrid] Fix sample cs2_publish_custom_events_to_a_domain_topic #16042

rakshith91 opened this issue Jan 8, 2021 · 0 comments · Fixed by #16217
Assignees
Labels
blocking-release Blocks release Client This issue points to a problem in the data-plane of the library. Event Grid Messaging Messaging crew

Comments

@rakshith91
Copy link
Contributor

Here's the trace

$ c:/Users/Administrator/Documents/Workspace/azure-sdk-for-python/envegrid/Scri
pts/python.exe c:/Users/Administrator/Documents/Workspace/azure-sdk-for-python/
sdk/eventgrid/azure-eventgrid/samples/champion_scenarios/cs2_publish_custom_eve
nts_to_a_domain_topic.py
Traceback (most recent call last):
  File "c:/Users/Administrator/Documents/Workspace/azure-sdk-for-python/sdk/eventgrid/azure-eventgrid/samples/champion_scenarios/cs2_publish_custom_events_to_a_domain_topic.py", line 44, in <module>
    data_version="2.0"
  File "C:\Users\Administrator\Documents\Workspace\azure-sdk-for-python\envegrid\lib\site-packages\azure\core\tracing\decorator.py", line 83, in wrapper_use_tracer
    return func(*args, **kwargs)
  File "c:\users\administrator\documents\workspace\azure-sdk-for-python\sdk\eventgrid\azure-eventgrid\azure\eventgrid\_publisher_client.py", line 132, in send
    self._client.publish_events(self._topic_hostname, cast(List[InternalEventGridEvent], events), **kwargs)
  File "c:\users\administrator\documents\workspace\azure-sdk-for-python\sdk\eventgrid\azure-eventgrid\azure\eventgrid\_generated\operations\_event_grid_publisher_client_operations.py", line 75, in publish_events
    raise HttpResponseError(response=response)
azure.core.exceptions.HttpResponseError: (BadRequest) Unexpected token when reading JSON. Expected: StartObject, actual: StartArray. Report '00b1077e-af42-4382-8faf-7fcf9f0dee44:4:1/8/2021 5:49:50 PM (UTC)' to our forums for assistance or raise a support ticket

Inestigate and fix the sample

@rakshith91 rakshith91 added Event Grid Client This issue points to a problem in the data-plane of the library. blocking-release Blocks release labels Jan 8, 2021
@rakshith91 rakshith91 added this to the [2021] February milestone Jan 8, 2021
@rakshith91 rakshith91 self-assigned this Jan 8, 2021
@lmazuel lmazuel added the Messaging Messaging crew label Apr 12, 2021
openapi-sdkautomation bot pushed a commit to AzureSDKAutomation/azure-sdk-for-python that referenced this issue Sep 18, 2021
[Hub Generated] Review request for Microsoft.KeyVault to add version preview/2021-06-01-preview (Azure#16042)

* Added exportable attribute and release policy to CP Swagger doc

* Specify type as object for ReleasePolicy

* Address code review comments

* Add suppression code for camelCase

* Prettier check
@github-actions github-actions bot locked and limited conversation to collaborators Apr 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
blocking-release Blocks release Client This issue points to a problem in the data-plane of the library. Event Grid Messaging Messaging crew
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants