GithubHelp home page GithubHelp logo

Comments (5)

dgilperez avatar dgilperez commented on August 27, 2024

Got hit by this as well. Any temporal workaround we can use in production? Thanks!

from intercom-rails.

gspiers avatar gspiers commented on August 27, 2024

@dgilperez Sorry for the late reply. This was our temporary work around https://github.com/shinydevelopment/intercom-rails/commit/d10a0c2e1321e0707691997b1448f7b6d52a4877

from intercom-rails.

eugeneius avatar eugeneius commented on August 27, 2024

Hey @gspiers - thanks for writing this up, and sorry it took us so long to get back to you.

I've checked the bulk create API endpoint used by the import rake task, and it doesn't look for secure mode or attempt to compare the user_hash value. I imported some users to an app with secure mode enabled as a test, and it worked fine.

Are you performing regular imports using this task? If so, could you try one without sending the user_hash? If it still fails, I can look into what's happening on our side.

from intercom-rails.

gspiers avatar gspiers commented on August 27, 2024

@eugeneius We used it as a one time import originally. On our staging server I just tried the rake task again and it worked without errors.

I can't remember if originally this rake task worked on our staging environment (the test Intercom environment) and failed on production. Unfortunately I can't run that rake task again on our real Intercom account. But I suspect if it's working for the test environment it is probably working for the real environment as well.

Thanks for your help, just let me know if you want to try some other testing. Maybe @dgilperez can confirm if it's still a problem when importing in production?

from intercom-rails.

eugeneius avatar eugeneius commented on August 27, 2024

I've looked over our historical metrics for the bulk import endpoint. The only errors we've seen in the last few months have been transient infrastructure-level errors, such as a database write being rejected. Importing a large batch of users is a heavy operation, so this can happen - it's why the task retries each batch up to three times. It's possible you were just unlucky and had three failed requests in a row, and by the time you tried again with your user_hash patch applied the problem had resolved itself.

@dgilperez if you're still having trouble importing your users, could you email [email protected] with the details so we can look into it? It's unlikely to be related to secure mode, but without more information I can't do much to help.

from intercom-rails.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.