Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Why are REST API custom analysis Events Invalid Events

Discussion in 'Unity Analytics' started by Kinix_KK, Aug 10, 2022.

  1. Kinix_KK

    Kinix_KK

    Joined:
    Aug 9, 2022
    Posts:
    5
    My server sent a custom Event through REST API, I did all the steps according to the document, and returned 204, but in the Event browser, I could only see the record in Invaliad Events, and prompted me "Event Schema ServerTest not found."
     

    Attached Files:

  2. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    It looks like you are sending an event parameter (GetRandomID)? I don't see a parameter defined in your event schema. Can you test from a client Unity project via the API (not REST). But it may be something at our end too. Please send me your Analytics dashboard URL in a private message here and I'll take a look.
     
  3. Kinix_KK

    Kinix_KK

    Joined:
    Aug 9, 2022
    Posts:
    5
    Thanks, the GetRandomID method returns a 21-bit Nanoid string, such as "kEDP7qobuNt7y88JdURZw". This GetRandomID is assigned to the UserId parameter
     
  4. Kinix_KK

    Kinix_KK

    Joined:
    Aug 9, 2022
    Posts:
    5
    • I have sent you my URL. Please help me check it. Thank you very much
     
  5. Kinix_KK

    Kinix_KK

    Joined:
    Aug 9, 2022
    Posts:
    5
    It is OK for me to send analysis Events using the Unity client, and the sent Events are available in Valid Events
     
  6. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Can you share your working client code? I will take a look at your dashboard
     
  7. Kinix_KK

    Kinix_KK

    Joined:
    Aug 9, 2022
    Posts:
    5
    Ok, I sent you my client and server code, the client is correct, the server has a problem
     

    Attached Files: