Skip to content
This repository has been archived by the owner on Nov 23, 2019. It is now read-only.

Emit errors when the request fails #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Emit errors when the request fails #4

wants to merge 1 commit into from

Conversation

gnandretta
Copy link

I believe @cristiandouce has been talking with your support team about the details of the issues we are experiencing, but we need a mechanism to detect when a request to segment (via analytics.js) fails. The callbacks that can be provided to methods like track, page, identify and so on, don't yield any information about the status of the request.

One solution we came up with is to emit errors when the request fails and it is implemented in this pull request. Unfortunately, in order for this to actually work, yields/send-json needs to be updated. A pull request has already been sent. .

It order for this to actually work, yields/send-json needs to be
updated. A pull request has been sent
yields/send-json#5.
@hankim813
Copy link
Contributor

@ndhoule @sperand-io @f2prateek can you guys take a look at this PR?

@gnandretta
Copy link
Author

BTW the test are failing, because I've added a test case for the new behavior.

As I mentioned in the PR description, the test will fail until yields/send-json#5 gets merged and (assuming that happens) I can update the send-json dependency version.

@cristiandouce
Copy link

@ndhoule @sperand-io @f2prateek Any news on this? Would you need anything from us?
Thanks!

@gnandretta gnandretta changed the title [WIP] Emit errors when the request fails Emit errors when the request fails Sep 8, 2015
@SegmentDestinationsBot
Copy link

Hi @gnandretta, as part of the monorepo migration, this issue has been moved to new issue. Our engineers have been notified and will prioritize and work on it ASAP. Thank you!

For more information, see README.md.

@SegmentDestinationsBot SegmentDestinationsBot added the migrated The issue has been migrated label Nov 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
migrated The issue has been migrated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants