Skip to content

Merge pull request #380 from baking-bad/aux/3.13.6 #131

Merge pull request #380 from baking-bad/aux/3.13.6

Merge pull request #380 from baking-bad/aux/3.13.6 #131

GitHub Actions / Test Results failed Dec 13, 2024 in 0s

1 fail, 12 skipped, 1β€ˆ112 pass in 2m 10s

1β€ˆ125 tests   1β€ˆ112 βœ…β€ƒβ€ƒ2m 10s ⏱️
β€‡β€ˆβ€‡β€‡4 suitesβ€ƒβ€ƒβ€‡β€ˆβ€‡12 πŸ’€
β€‡β€ˆβ€‡β€‡4 filesβ€„β€‚β€ƒβ€ƒβ€‡β€ˆβ€‡β€‡1 ❌

Results for commit 5c0662a.

Annotations

Check warning on line 0 in tests.integration_tests.test_sender.SenderContractTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_no_source (tests.integration_tests.test_sender.SenderContractTest) failed

integration_test_results.xml [took 1s]
Raw output
pytezos.rpc.node.RpcError: ('Internal Server Error',)
self = <tests.integration_tests.test_sender.SenderContractTest testMethod=test_no_source>

    def test_no_source(self):
>       res = self.ci.default().run_code(storage=initial, sender=sender)

tests/integration_tests/test_sender.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
src/pytezos/jupyter.py:90: in __call__
    return method(self.obj, *args, **kwargs)
src/pytezos/contract/call.py:246: in run_code
    res = self.shell.blocks[self.block_id].helpers.scripts.run_code.post(query)
src/pytezos/jupyter.py:90: in __call__
    return method(self.obj, *args, **kwargs)
src/pytezos/rpc/helpers.py:272: in post
    return self._post(json=invocation)
src/pytezos/rpc/query.py:131: in _post
    return self.node.post(
src/pytezos/rpc/node.py:143: in post
    response = self.request(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pytezos.rpc.node.RpcNode object at 0x7f036b1a8c10>

Node address
https://rpc.tzkt.io/mainnet
method = 'POST', path = '/chains/main/blocks/head/helpers/scripts/run_code'
kwargs = {'json': {'amount': '0', 'balance': '0', 'chain_id': 'NetXdQprcVkpaWU', 'entrypoint': 'default', ...}, 'params': None}
res = <Response [500]>

    def request(self, method: str, path: str, **kwargs) -> requests.Response:
        """Perform HTTP request to node.
    
        :param method: one of GET/POST/PUT/DELETE
        :param path: path to endpoint
        :param kwargs: requests.request arguments
        :raises RpcError: node has returned an error
        :returns: node response
        """
        logger.debug('>>>>> %s %s\n%s', method, path, json.dumps(kwargs, indent=4))
        res = requests.request(
            method=method,
            url=_urljoin(self.uri[0], path),
            headers={'content-type': 'application/json', 'user-agent': 'PyTezos', **self.headers},
            timeout=kwargs.pop('timeout', None) or 60,
            **kwargs,
        )
        if res.status_code == 401:
            logger.debug('<<<<< %s\n%s', res.status_code, res.text)
            raise RpcError(f'Unauthorized: {path}')
        if res.status_code == 404:
            logger.debug('<<<<< %s\n%s', res.status_code, res.text)
            raise RpcError(f'Not found: {path}')
        if res.status_code != 200:
            logger.debug('<<<<< %s\n%s', res.status_code, pformat(res.text, indent=4))
>           raise RpcError.from_response(res)
E           pytezos.rpc.node.RpcError: ('Internal Server Error',)

src/pytezos/rpc/node.py:118: RpcError