Amplitude-JavaScript icon indicating copy to clipboard operation
Amplitude-JavaScript copied to clipboard

Modified apiEndpoint breaks Amplitude Instrumentation Explorer

Open Naismith opened this issue 5 years ago • 7 comments

Expected Behavior

Expect events to be tracked using the new apiEndpoint provided

Current Behavior

No events are shown in the plugin

Possible Solution

Allow JS SDK or Plugin to change apiEndpoint for watching the talks

Steps to Reproduce

  1. init client with a custom apiEndpoint in config
  2. open plugin in chrome to no events

Environment

  • JS SDK Version: 7.1.0
  • Installation Method: Yarn
  • Browser and Version or React Native and Device: Chrome 84 - MacOS Catalina 10.15.6

Naismith avatar Oct 20 '20 15:10 Naismith

Thanks for the report, will look into this

jooohhn avatar Oct 22 '20 21:10 jooohhn

@Naismith are you using a custom endpoint or api2.amplitude.com? Version 0.1.2 of the instrumentation explorer should be able to listen to events on api2.amplitude.com, but we can keep this open to consider more generic api endpoints.

kelvin-lu avatar Oct 22 '20 21:10 kelvin-lu

@Naismith are you using a custom endpoint or api2.amplitude.com? Version 0.1.2 of the instrumentation explorer should be able to listen to events on api2.amplitude.com, but we can keep this open to consider more generic api endpoints.

I am using a custom endpoint

Naismith avatar Oct 22 '20 22:10 Naismith

@jooohhn and @kelvin-lu has there been any progress on this? Just checking in.

Naismith avatar Nov 02 '20 14:11 Naismith

Hey @Naismith, apologies for the lack of communication here but we're tracking this issue internally as well - we're hoping to have updates this week or in the coming week so that the instrumentation explorer can be configured to other endpoints!

kelvin-lu avatar Nov 03 '20 18:11 kelvin-lu

Hi @Naismith , are there any updates on this issue? It still doesn't work with the latest version of amplitude-js (8.14.0) and amplitude instrumentation explorer (0.3.3)

vadim-ilchenko avatar Dec 22 '21 10:12 vadim-ilchenko

Is this SDK working fine with the custom endpoint?

This sounds like an issue for the event explorer, I found that we have a list of api endpoints hard-coded there to listen to with webRequest API. So I don't think custom endpoint is supported with the current event explorer yet, we can probably support custom endpoint with the webRequest API too.

liuyang1520 avatar Nov 21 '22 18:11 liuyang1520