Skip to content

[Content]: GCP Cloud Functions doc doesn't explain request format #1929

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

Closed
borenstein opened this issue Sep 30, 2021 · 3 comments · Fixed by #1949
Closed

[Content]: GCP Cloud Functions doc doesn't explain request format #1929

borenstein opened this issue Sep 30, 2021 · 3 comments · Fixed by #1949
Assignees
Labels
content When the bug is about content that needs to get fixed triaged

Comments

@borenstein
Copy link

What article on segment.com/docs is affected?

https://segment.com/docs/connections/destinations/catalog/google-cloud-function/

What part(s) of the article would you like to see updated?

When writing a GCP cloud function to handle inbound Segment data, I need to know what the body of the request is going to look like so that I can write handlers for it. Without that, I have to find out by trial and error, creating an event that just dumps everything to the console. That's very silly!

Additional information

No response

@borenstein borenstein added content When the bug is about content that needs to get fixed triage labels Sep 30, 2021
@markzegarelli markzegarelli self-assigned this Sep 30, 2021
@markzegarelli
Copy link
Contributor

Hi @borenstein, thanks for submitting this issue.

Requests to destinations vary widely, depending on the way the Source is configured, and the type of event that is sent.

I think your best bet here will be to use a combination of the Source Debugger, and Destination Event Tester as explained in Testing Connections. The Source Debugger, in particular, shows the raw content of the event data received by Segment, which is then sent on to the destination.

I will add this detail to the doc, for future reference.

@borenstein
Copy link
Author

borenstein commented Sep 30, 2021 via email

@markzegarelli
Copy link
Contributor

Thanks for confirming, and apologies for the lack of clarity.

We will add this detail to the doc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content When the bug is about content that needs to get fixed triaged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants