You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Background: We implemented a proxy service to route our mixpanel calls through using next JS. We found out while using the Mixpanel JS SDK, the client did not receive a response back due to a 308: Permanent Redirect, and because NextJS requires us to specify whether or not we allow trailing slashes, we did not get a response back after the redirect.
The problem: So we added support for trailing slashes to our next.config.js. However, when we did that, the Android library stopped being able to send events to Mixpanel.
After digging around on Github, we found that other Mixpanel libraries have trailing slashes that terminate the request endpoints for track, engage, and groups: iOS:
enumFlushType:String{case events ="/track/"case people ="/engage/"case groups ="/groups/"}
Background: We implemented a proxy service to route our mixpanel calls through using next JS. We found out while using the Mixpanel JS SDK, the client did not receive a response back due to a
308: Permanent Redirect
, and because NextJS requires us to specify whether or not we allow trailing slashes, we did not get a response back after the redirect.The problem: So we added support for trailing slashes to our
next.config.js
. However, when we did that, the Android library stopped being able to send events to Mixpanel.After digging around on Github, we found that other Mixpanel libraries have trailing slashes that terminate the request endpoints for
track
,engage
, andgroups
:iOS:
JS
Android does not:
We could probably write a workaround for this on the proxy level, but it may be a better solution for Mixpanel's routing to be consistent.
The text was updated successfully, but these errors were encountered: