# Why error in Square Reader SDK 1.5.4?

**URL:** <https://developer.squareup.com/forums/t/why-error-in-square-reader-sdk-1-5-4/5287>\
**Category:** Questions\
**Tags:** reader-sdk, sdk\
**Created:** [March 1, 2022, 12:54pm UTC](https://developer.squareup.com/forums/t/why-error-in-square-reader-sdk-1-5-4/5287 "2022-03-01T12:54:40Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![mfsi.anup](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@mfsi.anup](https://developer.squareup.com/forums/u/mfsi.anup)\
**Post date:** [March 1, 2022, 12:54pm UTC](https://developer.squareup.com/forums/t/why-error-in-square-reader-sdk-1-5-4/5287/1 "2022-03-01T12:54:40Z")

</div>

The old SDK version 1.3.8 worked fine, but today I downloaded SDK version 1.5.4 from Square Reader Portal and it gave me errors.

```auto
ruby <(curl https://connect.squareup.com/readersdk-installer) install \
--app-id a12a1212a123aa123a123a123a123 \
--repo-password MMMMMMMMMMM __________cworrttttttttttt45f_______ bq

```

**vvvvv SQUARE ERROR vvvvv**

**ERROR: Something went wrong. Please contact the developer of this application and provide them with this error code: authorization\_invalid\_code**

**DEBUG CODE: authorization\_invalid\_code**

**DEBUG MESSAGE: The authorization code is invalid. The authorization code may have been requested with a Square Application ID different from the one associated with this application.**

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [March 1, 2022, 6:09pm UTC](https://developer.squareup.com/forums/t/why-error-in-square-reader-sdk-1-5-4/5287/2 "2022-03-01T18:09:58Z")

</div>

👋 Do you have multiple application in the Developer Dashboard? If so is it possible you used the wrong repo password for the application that’s configured in the Reader SDK? 🙂

---

<div class="post-metadata">

**Author:** ![mfsi.anup](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@mfsi.anup](https://developer.squareup.com/forums/u/mfsi.anup)\
**Post date:** [March 2, 2022, 3:20pm UTC](https://developer.squareup.com/forums/t/why-error-in-square-reader-sdk-1-5-4/5287/3 "2022-03-02T15:20:44Z")

</div>

I think it was a location issue since I was doing testing in India and it was working in the US.

---

<div class="post-metadata">

**Author:** ![Mauliks](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@Mauliks](https://developer.squareup.com/forums/u/Mauliks)\
**Post date:** [July 22, 2022, 3:08pm UTC](https://developer.squareup.com/forums/t/why-error-in-square-reader-sdk-1-5-4/5287/4 "2022-07-22T15:08:49Z")

</div>

@Bryan-Square It was working for authorization previously not for the making payment in India. So now in new SDK authorization will also not work?

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [July 22, 2022, 4:32pm UTC](https://developer.squareup.com/forums/t/why-error-in-square-reader-sdk-1-5-4/5287/5 "2022-07-22T16:32:16Z")

</div>

Are you having authorizations fail? 🙂

---

<div class="post-metadata">

**Author:** ![Mauliks](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@Mauliks](https://developer.squareup.com/forums/u/Mauliks)\
**Post date:** [August 1, 2022, 1:29pm UTC](https://developer.squareup.com/forums/t/why-error-in-square-reader-sdk-1-5-4/5287/6 "2022-08-01T13:29:02Z")

</div>

@Bryan-Square yes, getting authorizations failed in

`[[SQRDReaderSDK sharedSDK] authorizeWithCode:locationID completionHandler:^(SQRDLocation * **_Nullable** location, NSError * **_Nullable** error)`

locationID - getting this from [https://connect.squareup.com/mobile/authorization-code](https://connect.squareup.com/mobile/authorization-code) by passing Registered location ID

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [August 1, 2022, 8:03pm UTC](https://developer.squareup.com/forums/t/why-error-in-square-reader-sdk-1-5-4/5287/7 "2022-08-01T20:03:48Z")

</div>

What’s the `location_id` that you’re getting this with. Also if you delete the SDK framework and reinstall it does that. 🙂

---

<div class="post-metadata">

**Author:** ![Mauliks](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@Mauliks](https://developer.squareup.com/forums/u/Mauliks)\
**Post date:** [August 2, 2022, 7:44am UTC](https://developer.squareup.com/forums/t/why-error-in-square-reader-sdk-1-5-4/5287/8 "2022-08-02T07:44:04Z")

</div>

Should I share it here? We were using an old Framework so I removed the old one and downloaded a new and added it to my project.

BTW, [https://connect.squareup.com/mobile/authorization-code](https://connect.squareup.com/mobile/authorization-code) gives me authorization\_code & expires\_at so using this I am authorizing in my app by  
`[[SQRDReaderSDK sharedSDK] authorizeWithCode` method.

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [August 2, 2022, 4:19pm UTC](https://developer.squareup.com/forums/t/why-error-in-square-reader-sdk-1-5-4/5287/9 "2022-08-02T16:19:47Z")

</div>

Is it working now once you replaced the framework? Also its safe to share a `location_id`. 🙂
