Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Test net endpoint not working. #42

Open
JeffryCA opened this issue Mar 1, 2022 · 2 comments
Open

Test net endpoint not working. #42

JeffryCA opened this issue Mar 1, 2022 · 2 comments

Comments

@JeffryCA
Copy link

JeffryCA commented Mar 1, 2022

When using any test net endpoint the process of deploying a contract does not work:

These are some of my logs:
I added:

def await_confirmation(client, signatures, max_timeout=60, target=20, finalized=True):
    elapsed = 0
    while elapsed < max_timeout:
        sleep_time = 5
        time.sleep(sleep_time)
        elapsed += sleep_time
        resp = client.get_signature_statuses(signatures)
        log.debug(resp)
        ...
INFO     uvicorn:metadata.py:135 Metadata account 8jTFMZm1ZnNtMUZhA447kxUGyjkro3Gyq5teDBiSkRwY
INFO     uvicorn:metaplex_api.py:53 Contract H3GhaJf18aYgmxWxtCz6RTuJ4uUqVteUqB3RLUxJeYdP
INFO     uvicorn:execution_engine.py:14 {'jsonrpc': '2.0', 'result': '2TTfGUDbh6S1Tj7pZdPUQU3UfG2bf9vizerjCCcgJjr2LzpJcszjzFLzS9dqfrhHDVVMiZ26gwDk5NE7kKdjbSvP', 'id': 2}
DEBUG    uvicorn:execution_engine.py:31 {'jsonrpc': '2.0', 'result': {'context': {'slot': 120912377}, 'value': [None, None]}, 'id': 3}
DEBUG    uvicorn:execution_engine.py:31 {'jsonrpc': '2.0', 'result': {'context': {'slot': 120912390}, 'value': [None, None]}, 'id': 4}
DEBUG    uvicorn:execution_engine.py:31 {'jsonrpc': '2.0', 'result': {'context': {'slot': 120912399}, 'value': [None, None]}, 'id': 5}
DEBUG    uvicorn:execution_engine.py:31 {'jsonrpc': '2.0', 'result': {'context': {'slot': 120912414}, 'value': [None, None]}, 'id': 6}
DEBUG    uvicorn:execution_engine.py:31 {'jsonrpc': '2.0', 'result': {'context': {'slot': 120912427}, 'value': [None, None]}, 'id': 7}
DEBUG    uvicorn:execution_engine.py:31 {'jsonrpc': '2.0', 'result': {'context': {'slot': 120912439}, 'value': [None, None]}, 'id': 8}
DEBUG    uvicorn:execution_engine.py:31 {'jsonrpc': '2.0', 'result': {'context': {'slot': 120912452}, 'value': [None, None]}, 'id': 9}
DEBUG    uvicorn:execution_engine.py:31 {'jsonrpc': '2.0', 'result': {'context': {'slot': 120912464}, 'value': [None, None]}, 'id': 10}
DEBUG    uvicorn:execution_engine.py:31 {'jsonrpc': '2.0', 'result': {'context': {'slot': 120912477}, 'value': [None, None]}, 'id': 11}
DEBUG    uvicorn:execution_engine.py:31 {'jsonrpc': '2.0', 'result': {'context': {'slot': 120912484}, 'value': [None, None]}, 'id': 12}
DEBUG    uvicorn:execution_engine.py:31 {'jsonrpc': '2.0', 'result': {'context': {'slot': 120912484}, 'value': [None, None]}, 'id': 13}
DEBUG    uvicorn:execution_engine.py:31 {'jsonrpc': '2.0', 'result': {'context': {'slot': 120912484}, 'value': [None, None]}, 'id': 14}
@crypt0miester
Copy link
Contributor

When using any test net endpoint the process of deploying a contract does not work:

These are some of my logs:
I added:

def await_confirmation(client, signatures, max_timeout=60, target=20, finalized=True):
    elapsed = 0
    while elapsed < max_timeout:
        sleep_time = 5
        time.sleep(sleep_time)
        elapsed += sleep_time
        resp = client.get_signature_statuses(signatures)
        log.debug(resp)
        ...
INFO     uvicorn:metadata.py:135 Metadata account 8jTFMZm1ZnNtMUZhA447kxUGyjkro3Gyq5teDBiSkRwY
INFO     uvicorn:metaplex_api.py:53 Contract H3GhaJf18aYgmxWxtCz6RTuJ4uUqVteUqB3RLUxJeYdP
INFO     uvicorn:execution_engine.py:14 {'jsonrpc': '2.0', 'result': '2TTfGUDbh6S1Tj7pZdPUQU3UfG2bf9vizerjCCcgJjr2LzpJcszjzFLzS9dqfrhHDVVMiZ26gwDk5NE7kKdjbSvP', 'id': 2}
DEBUG    uvicorn:execution_engine.py:31 {'jsonrpc': '2.0', 'result': {'context': {'slot': 120912377}, 'value': [None, None]}, 'id': 3}
DEBUG    uvicorn:execution_engine.py:31 {'jsonrpc': '2.0', 'result': {'context': {'slot': 120912390}, 'value': [None, None]}, 'id': 4}
DEBUG    uvicorn:execution_engine.py:31 {'jsonrpc': '2.0', 'result': {'context': {'slot': 120912399}, 'value': [None, None]}, 'id': 5}
DEBUG    uvicorn:execution_engine.py:31 {'jsonrpc': '2.0', 'result': {'context': {'slot': 120912414}, 'value': [None, None]}, 'id': 6}
DEBUG    uvicorn:execution_engine.py:31 {'jsonrpc': '2.0', 'result': {'context': {'slot': 120912427}, 'value': [None, None]}, 'id': 7}
DEBUG    uvicorn:execution_engine.py:31 {'jsonrpc': '2.0', 'result': {'context': {'slot': 120912439}, 'value': [None, None]}, 'id': 8}
DEBUG    uvicorn:execution_engine.py:31 {'jsonrpc': '2.0', 'result': {'context': {'slot': 120912452}, 'value': [None, None]}, 'id': 9}
DEBUG    uvicorn:execution_engine.py:31 {'jsonrpc': '2.0', 'result': {'context': {'slot': 120912464}, 'value': [None, None]}, 'id': 10}
DEBUG    uvicorn:execution_engine.py:31 {'jsonrpc': '2.0', 'result': {'context': {'slot': 120912477}, 'value': [None, None]}, 'id': 11}
DEBUG    uvicorn:execution_engine.py:31 {'jsonrpc': '2.0', 'result': {'context': {'slot': 120912484}, 'value': [None, None]}, 'id': 12}
DEBUG    uvicorn:execution_engine.py:31 {'jsonrpc': '2.0', 'result': {'context': {'slot': 120912484}, 'value': [None, None]}, 'id': 13}
DEBUG    uvicorn:execution_engine.py:31 {'jsonrpc': '2.0', 'result': {'context': {'slot': 120912484}, 'value': [None, None]}, 'id': 14}

rerun again after a few minutes. it will work.

this wont happen in mainnet (never happened to me)

@JeffryCA
Copy link
Author

JeffryCA commented Mar 1, 2022

I really have tried multiple times and not one transaction was successful @crypt0miester
(not even the deploy one)

By just changing to devnet it works again...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants