# A similar object exists in test mode error

**URL:** https://meta.discourse.org/t/a-similar-object-exists-in-test-mode-error/339890
**Category:** Bug
**Tags:** subscriptions
**Created:** [November 25, 2024, 6:13am UTC](https://meta.discourse.org/t/a-similar-object-exists-in-test-mode-error/339890 "2024-11-25T06:13:38Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![jacte](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jacte/32/117313_2.png) [@jacte](https://meta.discourse.org/u/jacte)
#### Post date: [November 25, 2024, 6:13am UTC](https://meta.discourse.org/t/a-similar-object-exists-in-test-mode-error/339890/1 "2024-11-25T06:13:38Z")

</div>

Has anyone else gotten this error when, after having used the test api keys, tried to subscribe using the same user with the live keys in place?

> a similar object exists in test mode, but a live mode key was used to make this request.

---

<div class="post-metadata">

### Author: ![nathank](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nathank/32/290039_2.png) [@nathank](https://meta.discourse.org/u/nathank)
#### Post date: [November 26, 2024, 6:54am UTC](https://meta.discourse.org/t/a-similar-object-exists-in-test-mode-error/339890/2 "2024-11-26T06:54:49Z")

</div>

Yeah, I remember having that problem. Can’t recall how I got around it - think it was simply by deleting the test stuff.

It did strike me as a bit odd, but it is definitely a Stripe thing and nothing to do with the plugin.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [November 26, 2024, 10:27pm UTC](https://meta.discourse.org/t/a-similar-object-exists-in-test-mode-error/339890/3 "2024-11-26T22:27:05Z")

</div>

I works the you need to delete the test records from rails. Don’t know how to do that offhand.

---

<div class="post-metadata">

### Author: ![nathank](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nathank/32/290039_2.png) [@nathank](https://meta.discourse.org/u/nathank)
#### Post date: [November 27, 2024, 5:53am UTC](https://meta.discourse.org/t/a-similar-object-exists-in-test-mode-error/339890/4 "2024-11-27T05:53:35Z")

</div>

That sounds like a significant bug! I can’t recall if I did that (might well have), but that really shouldn’t be necessary.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [November 28, 2024, 1:59am UTC](https://meta.discourse.org/t/a-similar-object-exists-in-test-mode-error/339890/5 "2024-11-28T01:59:27Z")

</div>

It seems like an edge case that you’d have a test user in test mode that would then be a real paying customer.
