Mr Game and Watch Posted February 5, 2017 Report Posted February 5, 2017 Hello!I'm trying to send offers. I can create them and I works fine But, when I try to send the confirmation, 80~90% of the times I get this error:"[Error: Could not find confirmation for object XXXXXXXXXX]" The offer is sent, but then I need to confirm it on my mobile device. What can I do to send the confirmation correctly? This is the code I'm using for send it var text_to_send = "Thanks for playing. Here is you reward :D"; var offer = manager.createOffer(trade_url); offer.addMyItems(items_to_send); offer.setMessage(text_to_send); offer.send(function(err, status) { if (err) { console.log(err); return; } if (status == 'pending') { console.log(`Offer #${offer.id} sent, but requires confirmation`); community.acceptConfirmationForObject(confirmation_key, offer.id, function(err) { if (err) { console.log(err); } else { console.log("Offer confirmed"); bbdd.save();//save to the ddbb } }); } else { console.log(`Offer #${offer.id} sent successfully`); bbdd.save();//save to the ddbb } What I'm doing wrong?Is there other way to confirm my offers sent? Thanks for reading this post and have a nice gaming! Quote
Dr. McKay Posted February 6, 2017 Report Posted February 6, 2017 Are you saying that you have the secret on your mobile device as well, in addition to on the server? Quote
Mr Game and Watch Posted February 6, 2017 Author Report Posted February 6, 2017 Yes. I can send the confirmation because I have the same identity_secret on both: Server and Steam App. Could that be the problem? Quote
Dr. McKay Posted February 6, 2017 Report Posted February 6, 2017 Yes, that's a problem. Confirming trades on two separate devices makes them randomly not appear. Quote
Mr Game and Watch Posted February 6, 2017 Author Report Posted February 6, 2017 First of all: Thanks for your answer Now I have 2 questions. If I can't have 2 devices... should this code work if I don't use them (I mean, my bot and SteamApp) at the same time? Is there any other way to get other identity_secret for my bot? Quote
Dr. McKay Posted February 6, 2017 Report Posted February 6, 2017 This code should work if you aren't using two devices, yes. You need to never try to load confirmations on your phone or elsewhere or else there will be problems. Specifically, there's a device ID that's sent to Steam when loading the confirmation list and if Steam sees different device IDs, then it has problems. Quote
Mr Game and Watch Posted February 6, 2017 Author Report Posted February 6, 2017 OK. I'll do that. Should I generate other identity_secret logging again on the SteamApp or should I let it and only acept the offers from my bot? Again, thanks for your answer Quote
Dr. McKay Posted February 6, 2017 Report Posted February 6, 2017 No need to regenerate your secret; just stop using the phone. Quote
Mr Game and Watch Posted February 7, 2017 Author Report Posted February 7, 2017 OK. Thanks again! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.