question-mark

Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Calling factory deployed contract gives a 500 error

See original GitHub issue

Issue Description

When trying to interact with (Contract.call) a contract that has been deployed by a factory the following request is made:

Header: https://alpha4.starknet.io/feeder_gateway/call_contract?blockNumber=pending

Body:

{"signature":[],"contract_address":"0x03053E2e251CB67e652BAF3a3fF091F807BfDC1f01EE21Ef64180559bc0ee739","entry_point_selector":"0x361458367e696363fbcc70777d07ebbd2394e89fd0adcaf147faccd1d294d60","calldata":[]}

Producing a 500 error:

{"code": "StarkErrorCode.MALFORMED_REQUEST", "message": "{'contract_address': ['Expected hex string, got: \"0x03053E2e251CB67e652BAF3a3fF091F807BfDC1f01EE21Ef64180559bc0ee739\".']}"}

Contract: https://goerli.voyager.online/contract/0x03053e2e251cb67e652baf3a3ff091f807bfdc1f01ee21ef64180559bc0ee739

Calling the contract without specifying the blockNumber should work? Seems by default block_number=pending is assigned to one where it cannot find the block number? Known issue in Voyager but believe the feeder_gateway has the contract info fine.

Issue Analytics

  • State:closed
  • Created 6 months ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
badurinantuncommented, Jul 13, 2022

Rather than sending them lowercase we could parse them with toHex(toBn(...)

0reactions
ivpavicicommented, Aug 12, 2022

@supsam89 closing this issue due to inactivity, feel free to reopen if any more questions arise!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Laravel+lumen issue of 500 error on every service api after ...
I am using laravel+Lumen ("php": ">7.3","laravel/lumen-framework": ">7.0" ) for 2 months its working fine right now it is giving every API 500 ......
Read more >
App Service Deployment Failing w/500 error starting Sept 16 ...
I'm using version 4.x of the Azure App Service Deploy task in Devops (VSTS). The call to POST the new upload is failing...
Read more >
500 Response body: {"message":"Internal Server Error"}
trying to make http call but getting error. it is calling my node to run the job though. { "name": "", "initiators": [ ......
Read more >
Error 500 when logging to IFS10 - IFS Community
This is an internal server error, usually, this occurs when your Middleware servers are down or not in running status. Please try to...
Read more >
asp.net core app deployed on iis meets 500 internal server error
Change stdoutLogEnabled="false" to true and then check the logs at stdoutLogFile=". · Check that you set up right Environment Name using ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found