Skip to main content
Something's wrong

When a key or connection stops working

What you see when a stored credential or app connection stops working, who needs to act, and how to check the stream has recovered.

When to use this

Use this page when events start failing because one of your systems refuses HC's login, or when a connection such as the Shopify app has been removed. A key is the stored set of credentials HC uses to access one of your systems. If the key stops being accepted, every stream that uses it is affected.

What you see

  • Failed events with a login error. The error on the event comes from the other system and says the login or authorisation was refused. NetSuite, for example, returns 401 - Unauthorized. Invalid login attempt with the error code INVALID_LOGIN. Other systems use their own wording, usually with a 401 or 403 code.

  • Failures that keep coming. If the key itself is the problem, every new event that uses it fails until the key is replaced. If you have error alerts set up, you receive alerts for each affected stream.

  • Nothing at all, if an app was removed. When the Shopify app is uninstalled, nothing syncs between the app being removed and the reinstall completing.

A login error is not always a key problem. HC has traced short bursts of NetSuite INVALID_LOGIN errors, across many streams at once, to temporary problems or limits on the NetSuite side. Once NetSuite was working again, resending those events sent them through. An error with a different code, such as 500, usually points to something other than the login.

Why it happens

  • The credential expired in the other system.

  • Someone generated a new credential in the other system, so the key in HC still holds the old one.

  • The user account the credential belongs to was disabled, or lost the permissions it needs.

  • The Shopify app was uninstalled, or reinstalled without being authorised again.

  • A stream was set up with the wrong key or an older one.

Steps

Fix it in the other system

  1. Ask someone with the right access to issue a new credential in the system that rejected the login, or to reinstall and authorise the app. For Shopify, reinstalling needs store owner-level access.

  2. If the change is planned, such as reinstalling the Shopify app, tell HC beforehand so the gap is expected and anything missed during it can be picked up afterwards.

Replace the key in the Control Panel

  1. Create a new key with the new credentials. You cannot change the credentials on an existing key: only its title can be edited. See Providing and managing system credentials, or for Shopify, Create a Shopify key.

  2. Point each source or destination that used the old key at the new one.

If you would rather HC replaced the key, contact HC: see How to get support.

Check the stream has recovered

  1. Open one of the failed events and click Resend.

  2. Check the resent event reaches Ok.

  3. Resend the remaining failed events. For many events, use Actions > Resend events on the Events list: see Resend events and rerun jobs in bulk.

  4. Watch the next run of each affected stream, or run a scheduled stream manually, and check its new events succeed.

What you should see

The resent events reach Ok, new events on the affected streams succeed, and the alerts stop.

If it did not work

Events still fail with the same login error. Check that every source and destination on the affected streams now uses the new key. A key in active use cannot be deleted, so if the old key will not delete, something still points at it.

Records are missing but there is no failed event. Records sent while an app was removed may never have reached HC, so there is nothing to resend. Contact HC with the time window and the records you expected.

The error is not a login error. See I received an alert β€” what now?.