victorious-wire-44732
03/23/2021, 6:19 PMfreezing-agent-68538
03/23/2021, 6:39 PMuserId xxx failed for the first time adding to map
What I understood from the code was that this is happening because of guaranteeUserEventOrder
flag set to true. Can u please help us understand this particular property more and how can we avoid the failure of events?victorious-wire-44732
03/23/2021, 6:59 PMenough-caravan-59272
03/24/2021, 7:22 PMrapid-wire-93211
03/26/2021, 3:14 AM2021-03-26T14:10:29.893+1100 INFO WH: Starting Warehouse service...
2021-03-26T14:10:29.924+1100 ERROR Could not run warehouse database migrations: Could not run migration from directory 'warehouse', Dirty database version 8. Fix and force version.
2021-03-26T14:10:29.924+1100 ERROR goroutine 39 [running]:
<http://github.com/rudderlabs/rudder-server/utils/logger.(*LoggerT).Fatal(0xc0001d5860|github.com/rudderlabs/rudder-server/utils/logger.(*LoggerT).Fatal(0xc0001d5860>, 0xc00087a3d0, 0x1, 0x1)
/codebuild/output/src284385697/src/github.com/rudderlabs/rudder-server/utils/logger/logger.go:264 +0x10b
<http://github.com/rudderlabs/rudder-server/rruntime.Go.func1.1(0x1e73b20|github.com/rudderlabs/rudder-server/rruntime.Go.func1.1(0x1e73b20>, 0xc0005ce6c0)
/codebuild/output/src284385697/src/github.com/rudderlabs/rudder-server/rruntime/goroutine-factory.go:42 +0x37f
panic(0x1748060, 0xc0002cafc0)
/root/.goenv/versions/1.13.8/src/runtime/panic.go:679 +0x1b2
<http://github.com/rudderlabs/rudder-server/warehouse.setupTables(0xc00025a240)|github.com/rudderlabs/rudder-server/warehouse.setupTables(0xc00025a240)>
/codebuild/output/src284385697/src/github.com/rudderlabs/rudder-server/warehouse/warehouse.go:857 +0x127
<http://github.com/rudderlabs/rudder-server/warehouse.setupDB(0xc0007e42a0|github.com/rudderlabs/rudder-server/warehouse.setupDB(0xc0007e42a0>, 0x67)
/codebuild/output/src284385697/src/github.com/rudderlabs/rudder-server/warehouse/warehouse.go:1010 +0xf7
<http://github.com/rudderlabs/rudder-server/warehouse.Start()|github.com/rudderlabs/rudder-server/warehouse.Start()>
/codebuild/output/src284385697/src/github.com/rudderlabs/rudder-server/warehouse/warehouse.go:1024 +0xcc
main.startWarehouseService(...)
/codebuild/output/src284385697/src/github.com/rudderlabs/rudder-server/main.go:74
main.main.func5()
/codebuild/output/src284385697/src/github.com/rudderlabs/rudder-server/main.go:169 +0x21
<http://github.com/rudderlabs/rudder-server/rruntime.Go.func1(0x1a95608)|github.com/rudderlabs/rudder-server/rruntime.Go.func1(0x1a95608)>
/codebuild/output/src284385697/src/github.com/rudderlabs/rudder-server/rruntime/goroutine-factory.go:46 +0x81
created by <http://github.com/rudderlabs/rudder-server/rruntime.Go|github.com/rudderlabs/rudder-server/rruntime.Go>
/codebuild/output/src284385697/src/github.com/rudderlabs/rudder-server/rruntime/goroutine-factory.go:32 +0x3f
2021/03/26 14:10:29 notifying bugsnag: Could not run warehouse database migrations: Could not run migration from directory 'warehouse', Dirty database version 8. Fix and force version.
2021/03/26 14:10:29 bugsnag.Notify: bugsnag/payload.deliver: invalid api key: ''
2021/03/26 14:10:29 bugsnag/sessions/publisher.publish invalid API key: ''
prehistoric-pillow-24178
03/26/2021, 11:33 AMprehistoric-pillow-24178
03/26/2021, 11:33 AMadventurous-engineer-76858
03/27/2021, 6:43 AMbillions-monitor-7249
03/27/2021, 7:13 PManalytics-rudderstack-0
, Which is causing it to restart lots (47 times in the last 8 hours!)
Is there anything i'm missing?
2021/03/27 19:02:03 notifying bugsnag: json: error calling MarshalJSON for type json.RawMessage: invalid character 'p' after object key:value pair
panic: json: error calling MarshalJSON for type json.RawMessage: invalid character 'p' after object key:value pair [recovered]
panic: json: error calling MarshalJSON for type json.RawMessage: invalid character 'p' after object key:value pair [recovered]
panic: json: error calling MarshalJSON for type json.RawMessage: invalid character 'p' after object key:value pair
goroutine 107 [running]:
<http://github.com/bugsnag/bugsnag-go.AutoNotify(0xc000939ca0|github.com/bugsnag/bugsnag-go.AutoNotify(0xc000939ca0>, 0x3, 0x3)
/codebuild/output/src427158458/src/github.com/rudderlabs/rudder-server/vendor/github.com/bugsnag/bugsnag-go/bugsnag.go:109 +0x2bc
panic(0x15c8740, 0xc00023f3a0)
/root/.goenv/versions/1.13.8/src/runtime/panic.go:679 +0x1b2
<http://github.com/rudderlabs/rudder-server/rruntime.Go.func1.1|github.com/rudderlabs/rudder-server/rruntime.Go.func1.1>(0x1c19aa0, 0xc0002d8120)
/codebuild/output/src427158458/src/github.com/rudderlabs/rudder-server/rruntime/goroutine-factory.go:43 +0x39a
panic(0x15c8740, 0xc00023f3a0)
/root/.goenv/versions/1.13.8/src/runtime/panic.go:679 +0x1b2
<http://github.com/rudderlabs/rudder-server/utils/misc.AssertErrorIfDev|github.com/rudderlabs/rudder-server/utils/misc.AssertErrorIfDev>(0x1bee7c0, 0xc00023f3a0)
/codebuild/output/src427158458/src/github.com/rudderlabs/rudder-server/utils/misc/misc.go:157 +0x14a
<http://github.com/rudderlabs/rudder-server/services/destination-debugger.uploadJobs(0xc000eb4020|github.com/rudderlabs/rudder-server/services/destination-debugger.uploadJobs(0xc000eb4020>, 0x1, 0x1)
/codebuild/output/src427158458/src/github.com/rudderlabs/rudder-server/services/destination-debugger/eventDeliveryStatusUploader.go:120 +0x85d
<http://github.com/rudderlabs/rudder-server/services/destination-debugger.flushJobs()|github.com/rudderlabs/rudder-server/services/destination-debugger.flushJobs()>
/codebuild/output/src427158458/src/github.com/rudderlabs/rudder-server/services/destination-debugger/eventDeliveryStatusUploader.go:202 +0x134
<http://github.com/rudderlabs/rudder-server/services/destination-debugger.Setup.func3()|github.com/rudderlabs/rudder-server/services/destination-debugger.Setup.func3()>
/codebuild/output/src427158458/src/github.com/rudderlabs/rudder-server/services/destination-debugger/eventDeliveryStatusUploader.go:99 +0x20
<http://github.com/rudderlabs/rudder-server/rruntime.Go.func1(0x18dac98)|github.com/rudderlabs/rudder-server/rruntime.Go.func1(0x18dac98)>
/codebuild/output/src427158458/src/github.com/rudderlabs/rudder-server/rruntime/goroutine-factory.go:46 +0x81
created by <http://github.com/rudderlabs/rudder-server/rruntime.Go|github.com/rudderlabs/rudder-server/rruntime.Go>
/codebuild/output/src427158458/src/github.com/rudderlabs/rudder-server/rruntime/goroutine-factory.go:32 +0x3f
prehistoric-pillow-24178
03/27/2021, 8:50 PMputEvents
API?
{
"response": "Could not unmarshal jsonData according to putEvents input structure",
"firstAttemptedAt": "2021-03-27T20:37:03.844Z"
}
// Payload:
{
"eventList": [
{
"itemId": "20515",
"sentAt": "2021-03-27T20:36:48.793Z",
"eventType": "click",
"timestamp": 1616877409,
"impression": "",
"properties": {
"filters": ""
}
}
],
"sessionId": "910290eb-2438-4392-98f2-7223b0708de3",
"trackingId": "d95a802a-c299-49ca-8a21-16d09e91b8a5",
"userId": "abc123"
}
It has all the required fields according to the docs:
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/personalize-events.html#PersonalizeEvents.Client.put_eventsadventurous-cat-93802
03/29/2021, 9:34 AMcareful-kite-55383
03/30/2021, 4:25 AMrequire
or similar?
I am thinking of use cases such as removing PII by using the same logic for multiple destinations, and re-using enrichment functions. I know we could call an API but would rather keep most of our customer data logic within rudder, and only rely on APIs when 3rd party products are needed.clean-lunch-42938
03/30/2021, 4:54 AMglamorous-vegetable-12904
03/30/2021, 11:01 AMhundreds-lifeguard-65770
03/31/2021, 12:16 PMbitter-toothbrush-70690
04/01/2021, 5:02 AMbroad-jackal-62873
04/01/2021, 8:22 AMenough-arm-23032
04/06/2021, 6:15 AMpolite-dinner-13923
04/06/2021, 11:53 AMglamorous-shoe-15731
04/06/2021, 12:11 PMstraight-action-86936
04/06/2021, 6:26 PMrhythmic-pizza-93292
04/07/2021, 3:00 PMvictorious-bird-68132
04/08/2021, 3:39 PMAccess to XMLHttpRequest at '<https://jetstackjulmm.dataplane.rudderstack.com/v1/page>' from origin '<http://localhost:3000>' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
In the network tab I see how the CORS preflight request fails with 404. I could reproduce that with curl as well:
$ curl '<https://jetstackjulmm.dataplane.rudderstack.com/v1/page>' \
-X 'OPTIONS' \
-H 'authority: <http://jetstackjulmm.dataplane.rudderstack.com|jetstackjulmm.dataplane.rudderstack.com>' \
-H 'accept: */*' \
-H 'access-control-request-method: POST' \
-H 'access-control-request-headers: anonymousid,authorization,content-type' \
-H 'origin: <http://localhost:3000>' \
-H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36' \
-H 'sec-fetch-mode: cors' \
-H 'sec-fetch-site: cross-site' \
-H 'sec-fetch-dest: empty' \
-H 'referer: <http://localhost:3000/>' \
-H 'accept-language: en-US,en;q=0.9,es;q=0.8' \
--compressed -v
* Trying 34.235.1.91:443...
* TCP_NODELAY set
* Connected to <http://jetstackjulmm.dataplane.rudderstack.com|jetstackjulmm.dataplane.rudderstack.com> (34.235.1.91) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server accepted to use h2
* Server certificate:
* subject: CN=*.<http://dataplane.rudderstack.com|dataplane.rudderstack.com>
* start date: Feb 11 00:00:00 2021 GMT
* expire date: Mar 12 23:59:59 2022 GMT
* subjectAltName: host "<http://jetstackjulmm.dataplane.rudderstack.com|jetstackjulmm.dataplane.rudderstack.com>" matched cert's "*.<http://dataplane.rudderstack.com|dataplane.rudderstack.com>"
* issuer: C=US; O=Amazon; OU=Server CA 1B; CN=Amazon
* SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x5608fac03e10)
> OPTIONS /v1/page HTTP/2
> Host: <http://jetstackjulmm.dataplane.rudderstack.com|jetstackjulmm.dataplane.rudderstack.com>
> accept-encoding: deflate, gzip, br
> authority: <http://jetstackjulmm.dataplane.rudderstack.com|jetstackjulmm.dataplane.rudderstack.com>
> accept: */*
> access-control-request-method: POST
> access-control-request-headers: anonymousid,authorization,content-type
> origin: <http://localhost:3000>
> user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36
> sec-fetch-mode: cors
> sec-fetch-site: cross-site
> sec-fetch-dest: empty
> referer: <http://localhost:3000/>
> accept-language: en-US,en;q=0.9,es;q=0.8
>
* Connection state changed (MAX_CONCURRENT_STREAMS == 128)!
< HTTP/2 404
< server: awselb/2.0
< date: Thu, 08 Apr 2021 15:38:22 GMT
< content-type: text/plain; charset=utf-8
< content-length: 0
<
* Connection #0 to host <http://jetstackjulmm.dataplane.rudderstack.com|jetstackjulmm.dataplane.rudderstack.com> left intact
hundreds-lifeguard-65770
04/08/2021, 3:41 PMhundreds-lifeguard-65770
04/08/2021, 3:42 PMadventurous-cat-93802
04/09/2021, 7:43 AMadamant-airplane-7907
04/09/2021, 8:19 AMlate-carpet-65295
04/09/2021, 11:58 AMrhythmic-pizza-93292
04/09/2021, 12:29 PMbillions-monitor-7249
04/09/2021, 12:40 PM