question

darran avatar image
darran asked darrank commented

400 Access denied when calling setEnabled for a custom tender with the TenderConnector

Calling this:


tenderConnector.setEnabled(tenderId, true)


and getting this


2020-07-06 13:37:09.147 5034-5087/com.fivestars.mpos.clover E/WM-WorkerWrapper: Work [ id=fed17309-3cee-4f2d-8bfe-14b62730a177, tags={ com.fivestars.yoshi.feature.tender.worker.FivestarsPayTenderCheckWorker } ] failed because it threw an exception/error
    java.util.concurrent.ExecutionException: com.clover.sdk.v1.ClientException: status code: 400 Access denied to package com.fivestars.mpos.clover
        at androidx.work.impl.utils.futures.AbstractFuture.getDoneValue(AbstractFuture.java:516)
        at androidx.work.impl.utils.futures.AbstractFuture.get(AbstractFuture.java:475)
        at androidx.work.impl.WorkerWrapper$2.run(WorkerWrapper.java:298)
        at androidx.work.impl.utils.SerialExecutor$Task.run(SerialExecutor.java:91)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
        at java.lang.Thread.run(Thread.java:761)
     Caused by: com.clover.sdk.v1.ClientException: status code: 400 Access denied to package com.fivestars.mpos.clover
        at com.clover.sdk.v1.ServiceConnector.throwOnFailure(ServiceConnector.java:327)
        at com.clover.sdk.v1.ServiceConnector.execute(ServiceConnector.java:260)
        at com.clover.sdk.v1.tender.TenderConnector.setEnabled(TenderConnector.java:172)
        at com.fivestars.yoshi.feature.tender.worker.FivestarsPayTenderCheckWorker.doWork(FivestarsPayTenderCheckWorker.kt:39)
        at androidx.work.CoroutineWorker$startWork$1.invokeSuspend(CoroutineWorker.kt:68)
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
        at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
        at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)


Custom Tenders
5 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Jeffrey Blattman avatar image Jeffrey Blattman ♦♦ commented ·

Is the app installed to that merchant via the app updater? Or did you sideload it?

0 Likes 0 ·
darrank avatar image darrank Jeffrey Blattman ♦♦ commented ·

sideload using adb install

0 Likes 0 ·
darrank avatar image darrank Jeffrey Blattman ♦♦ commented ·

this is running on a clover dev kit

0 Likes 0 ·
darrank avatar image darrank Jeffrey Blattman ♦♦ commented ·

think it is an api access permission issue - checking

0 Likes 0 ·
darrank avatar image darrank commented ·

I have these permissions

0 Likes 0 ·

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community