Hi support team! We are facing the issue: Events a...
# support
c
Hi support team! We are facing the issue: Events are sent to the destination(Redshift, firehose and Facebook Pixel) failing, l give logs to track the error. How can we sort the problem? Thanks in advance.
Copy code
{"log":"2022-12-22T11:35:09.482Z\u0009INFO\u0009gateway/gateway.go:1079\u0009IP: 2409:4070:2d17:7ab4:7d56:d1ed:ac9f:1f0 -- /v1/track -- Response: 400, Request neither has anonymousId nor userId\n","stream":"stdout","time":"2022-12-22T11:35:09.48240445Z"}
{"log":"2022-12-22T11:30:37.284Z\u0009INFO\u0009gateway/gateway.go:1079\u0009IP: 27.111.209.200 -- /v1/track -- Response: 400, Failed to read writeKey from header\n","stream":"stdout","time":"2022-12-22T11:30:37.284816669Z"}
{"log":"2022-12-22T11:30:34.278Z\u0009INFO\u0009gateway/gateway.go:1079\u0009IP: 168.119.133.69 -- /v1/page -- Response: 400, Invalid Write Key\n","stream":"stdout","time":"2022-12-22T11:30:34.279078942Z"}
{"log":"2022/12/23 05:30:41 bugsnag/sessions/publisher.publish invalid API key: ''\n","stream":"stdout","time":"2022-12-23T05:30:41.172130109Z"}
11:24
{"log":"2022-12-23T05:28:16.371Z\u0009INFO\u0009gateway/gateway.go:1079\u0009IP: 103.246.196.12 -- /v1/track -- Response: 400, Failed to read writeKey from header\n","stream":"stdout","time":"2022-12-23T05:28:16.371972588Z"}
s
Hey There! đź‘‹ Your message has been received by the RudderStack team. Our standard customer support hours are 9-6 PM EST, but we will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
q
@calm-byte-21885 I see there are 2 workspace IDs for you, which workspace ID is having this issue? What is the source that you are using?
c
let me check
1sNorBQKMnrNhpEGJGkMxWV5odD
We use Javascript as a source
q
JS source that is connected with above mentioned 3 destinations has not captured any event in the past 30 days. So this doesn’t seem like a destination problem to me. Can you check if JS source is configured properly on your website? Here is the doc for your reference. From the error message, please check if the write key is correct and if it is being sent correctly. https://www.rudderstack.com/docs/sources/event-streams/sdks/rudderstack-javascript-sdk/
c
We get real event from the source, and our development environment is working fine.
m
Copy code
Response: 400, Failed to read writeKey from header\n"
@calm-byte-21885 as per the above log, it appears that
writeKey
is not set in header. Can you please check it once?
c
How can we check for this?
m
Can you please share how did you instrument the source?
c
If it is problem of writeKey in header, it should have failed on dev environment also but currently we are getting correct output on dev.
Please reply @quiet-wolf-72320
q
@calm-byte-21885 Thank you for your waiting. I was out for a couple of days. can you compare the data plane deployment file for both dev and prod and check for the value
"rudderWorkspaceToken: <your_workspace_token>"
c
We are using same rudderWorkspaceToken in both dev and prod.
shared you in Direct Message.
h
@calm-byte-21885 Did you try a curl request with the same write key? And was it failing too
c
Could you share curl request example?
h
Copy code
curl -u "<<write_key>>": -X POST "<<dataplane-url>>" -d @"${dir}"/batch.json --header "Content-Type: application/json" # give absolute path for batch.json to test on local machine
batch.json
should be a sample rudder event
c
let me check