ASA Bidding Application Using PyTeal Error

while running ASA Bidding Application Using PyTeal .i am facing below issue in the line of
app_interaction_service.pay_to_seller(asa_seller_address=app_initialization_service.app_creator_address)

algosdk.error.AlgodHTTPError: {“message”:“TransactionPool.Remember: transaction 6MV4LWJSEKPKKTCCVRLXIZ5OPTPQ4HRFQ6CXFIL65N45FVO4OS5Q: transaction rejected by ApprovalProgram”}

Can you give us more details?

What exact steps did you take?
Did you execute a specific script? If yes, was it main.py on https://github.com/Vilijan/ASABidding or did you create your own? In the latter, can you copy-paste your script?

yes I was execute main.py on https://github.com/Vilijan/ASABidding
This is My code …

from src.app_services.app_initializaion_service import AppInitializationService
from src.app_services.app_interaction_service import AppInteractionService
from src.app_utils.credentials import main_developer_credentials, get_developer_credentials
from src.app_pyteal.app_source_code import approval_program, clear_program, AppVariables
from pyteal import *
main_dev_pk, main_dev_address = main_developer_credentials()

app_initialization_service = AppInitializationService(app_creator_pk=main_dev_pk,
                                                      app_creator_address=main_dev_address,
                                                      asa_unit_name="wawa",
                                                      asa_asset_name="wawa",
                                                      app_duration=150,
 teal_version=3)

app_initialization_service.create_application()


app_initialization_service.create_asa()

app_initialization_service.setup_asa_delegate_smart_contract()

app_initialization_service.deposit_fee_funds_to_asa_delegate_authority()

app_initialization_service.change_asa_credentials()

app_initialization_service.setup_algo_delegate_smart_contract()


app_initialization_service.deposit_fee_funds_to_algo_delegate_authority()


app_initialization_service.setup_app_delegates_authorities()



print(f'app_id: {app_initialization_service.app_id} \n'
      f'asa_id: {app_initialization_service.asa_id} \n'
      f'asa_delegate_authority_address: {app_initialization_service.asa_delegate_authority_address} \n'
      f'algo_delegate_authority_address: {app_initialization_service.algo_delegate_authority_address}')


bidder_pk, bidder_address = get_developer_credentials(developer_id=1)


app_interaction_service = AppInteractionService(app_id=app_initialization_service.app_id,
                                                asa_id=app_initialization_service.asa_id,
                                                current_owner_address=main_dev_address,
                                                teal_version=3)

app_interaction_service.execute_bidding(bidder_private_key=bidder_pk,
                                        bidder_address=bidder_address,
                                        amount=3000000)


app_interaction_service.execute_bidding(bidder_private_key=main_dev_pk,
                                        bidder_address=main_dev_address,
                                        amount=5000000)


 

    app_interaction_service.pay_to_seller(asa_seller_address=app_initialization_service.app_creator_address)

Error showing in the line

app_interaction_service.pay_to_seller(asa_seller_address=app_initialization_service.app_creator_address)

and error

algosdk.error.AlgodHTTPError: {“message”:“TransactionPool.Remember: transaction 6MV4LWJSEKPKKTCCVRLXIZ5OPTPQ4HRFQ6CXFIL65N45FVO4OS5Q: transaction rejected by ApprovalProgram”}

(Edit to make the code look better, i.e., write it between ```)

There was a similar question in the pyteal discord section. There the solution was that pay_to_seller must be executed after the bidding period is over. Try it first, please.

After completion of bidding period only i am getting this error