Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

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: