Comments (9)
hey @sandarsh-sridhar-cliq the library sends the data as an authorization header (
). I believe it's the API and debugger that maybe show this in the body - I might suggest you write in via our support form so our support team can get the right team to answer this!from analytics.net.
Thank you for responding to the issue this quickly. I had gone through that snippet of code. It absolutely makes sense to have the write key in a strongly typed class. But that property can be ignored during serialization with JsonIgnore property from Newtonsoft.json, so that it doesn't make it to the event data itself.
from analytics.net.
Ah... I see what you mean. It's because we convert the batch
object to JSON directly here
from analytics.net.
That's correct. So, when you annotate the WriteKey property with JsonIgnore, it wouldn't make it to the payload but you will still be able to make the POST request.
from analytics.net.
Cool - I've opened a ticket internally to track this. We'll post here when there's an update!
from analytics.net.
Thank you. I appreciate it. :)
from analytics.net.
I was doing some testing, and it looks like the writeKey is copied to the body, even if you only send it in the header.
Here's an example:
curl -X "POST" "https://api.segment.io/v1/import" \
-H 'Content-Type: application/json; charset=utf-8' \
-u '{writeKey}:' \
-d $'{
"batch": [
{
"type": "track",
"userId": "prateek",
"event": "Button Clicked"
}
]
}'
So even if we made a fix here, it wouldn't actually fix the underlying issue. I'd recommend opening a support issue - so they can route this to the right folks and notify you if there is an update. I'll ping the team about this directly as well!
from analytics.net.
Hmm...That's interesting. Well, thank you for trying though. Yeah, I shall open a support issue.
Thanks again.
from analytics.net.
Confirmed that the writeKey is not being displayed in the current version, Thank you.
from analytics.net.
Related Issues (20)
- `Defaults` class removed with no way to access values elsewhere HOT 1
- Create config.yml for circle ci in .net solution HOT 1
- Question: Is this suitable for Xamarin integration? HOT 3
- Changing fields of Concrete implementations of BaseAction to Properties HOT 1
- Versioning Question Due to Error HOT 4
- Support for .NET 5.0 framework
- Events not sent to Segment servers: The operation was canceled. HOT 6
- Update e2e CircleCi config due to image problem
- e2e Testing failing in circleci
- AsyncIntervalFlushHandler deadlock HOT 3
- Encounter System.ObjectDisposedException after Dispose is called HOT 3
- Expose Message Id as a configurable option HOT 1
- Snyk.io reports issue with referenced Newtonsoft.Json package HOT 1
- Allow a mocked Client to be used for the Analytics singleton
- Remove dependency on Json.Net HOT 3
- Make it easier to get 'hidden' errors when trying to send data to Segment HOT 1
- Calling Analytics.Client.Flush() when there are pending events can cause deadlock HOT 8
- Why is the NuGet package unlisted? HOT 5
- Analytics.NET Midleware HOT 1
- My event is not being tracked, how do I troubleshoot it? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from analytics.net.