Code Monkey home page Code Monkey logo

Comments (6)

keikari avatar keikari commented on July 28, 2024

Steps to see the issue. The issue seems to happen ~90% of the time. Few times I saw it work as expected:

  1. Create process A
  2. Add handler to process A
Handlers.add(
        "test-action",
        Handlers.utils.hasMatchingTag("Action", "Test-Action"),
        function (m)
            ao.send({Target = m.From, Data= "This message will never be created"})
        end
)
  1. Create process B
  2. Add handler to process B
Handlers.add(
        "test-action",
        Handlers.utils.hasMatchingTag("Action", "Test-Action"),
        function (m)
            ao.assign({Processes = { PROCESS_A_PID }, Message = m.Id})
        end
)
  1. From process B enter
Send({Target = ao.id, Action = "Test-Action"})

Result:
Message created in the handler in the process A is generated in the outbox, but it never gets send to Arweave.
Issue seems to be that MU gets empty response when it checks that result.

EDIT: Result isn't empty when checking manually. Link from the screenshot: https://cu.ao-testnet.xyz/result/ssswMSaMAnBTPePuEZMMVVHhWfPbAu8NW1MIzDaat2E?process-id=8fqIU38gHr06EqURPj80VNbIn-W436oQZa2UZ5WE7-0&no-busy=1
EDIT2: Above link isn't showing new message in the results anymore. See few comments down for new example + screenshots.

Screenshot from MU with empty response to assignment that generated result

2024-06-07_11-09

from ao.

twilson63 avatar twilson63 commented on July 28, 2024

from ao.

keikari avatar keikari commented on July 28, 2024

This is different.
At the time of the original issue, there was some confusion about what's happening. And it turned out that the assigning part actually seems to work fine, but the message resulting from that never reached Arweave.

This may not actually be related to assigning, but those steps just seems to be repro-able

In the repro steps, at the end, the MU gets empty result from the CU result link. But if the link is checked now, it can be seen that there is a outputted message there, but this one never reached Arweave (See screenshot of MU)
Forgot to mention that, and link to the result got hidden with the screenshot.

from ao.

tzarebczan avatar tzarebczan commented on July 28, 2024

Also more context: We're sending the message to B, not A.

What we're trying to show here is something like this flow:
Message 1 to Process B > Assigns Message 1 to Process A > Process A sends reply to Process B (msg.From from Message 1)

from ao.

keikari avatar keikari commented on July 28, 2024

For some reason this link in the second message returns now an empty result. It definitively had a new message there before. (EDIT: And still has when checking on local CU)
https://cu.ao-testnet.xyz/result/ssswMSaMAnBTPePuEZMMVVHhWfPbAu8NW1MIzDaat2E?process-id=8fqIU38gHr06EqURPj80VNbIn-W436oQZa2UZ5WE7-0&no-busy=1

Screenshot of the empty result, in case it changes back + from local CU

2024-06-08_12-18

2024-06-08_19-33


Here is a new link+screenshots showing the issue. (Also a screenshot of what I see when checking CU manually, in case it changes again. )
https://cu.ao-testnet.xyz/result/rzu6lIyxSVIlL6zvUZZ7Wxj1kzjyZp9HfNuYhfWYA5c?process-id=tzMcL9smF0Z-HbzM9Fr8TfYsPx4wSUSiG676lViyORc&no-busy=1

Can see a new message in results, but at the time MU checked the same link it didn't see the message. And message didn't made it to Arweave.

Screenshots

2024-06-08_12-00

2024-06-08_12-00_1

from ao.

tzarebczan avatar tzarebczan commented on July 28, 2024

I'm going to close this and open a new issue now that we've isolated the root cause more.

from ao.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.