Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't post order and get items #11

Open
nikolaevas opened this issue Sep 29, 2013 · 23 comments
Open

Can't post order and get items #11

nikolaevas opened this issue Sep 29, 2013 · 23 comments

Comments

@nikolaevas
Copy link

  1. I created new magento project in my account. When I post order via api I get correct response that my order with tasks hass been posted. But when I go to my onesky account I can't see this order.
  2. You created in my account new project "Onesky Testing" and added some items, but they don't have translations.
  3. When I go to "Onesky Testing" project and click on some language I get "The platform does not support collaboration." notification.
@VLMH
Copy link
Contributor

VLMH commented Sep 30, 2013

I have tried to use API to create project, order and able to retrieve the order details, items of order. Please check for any problems.
As we didn't open Magento project in our website right now, you can only use the website to check some of the result such as projects, words count, orders count.
Thanks for reporting

@nikolaevas
Copy link
Author

I can't post orders again. When I post order via api I got correct response with order status 'in-progress'. But in my account there is no this order. When I try to get order info via api I got correct response with status 'in-progress'. Items has not been translated.

@VLMH
Copy link
Contributor

VLMH commented Oct 3, 2013

@nikolaevas There's problem when parsing the items. I am investigating. I found that you have created some orders with items in project (#13037). Are those orders have problems? If not, please go ahead with those orders by now.

@VLMH
Copy link
Contributor

VLMH commented Oct 3, 2013

@nikolaevas I fixed the problem with a quick solution and successfully created an order in project (#13266) that your order failed on. Please try again to create order and I will take a look on the problem today. Thanks!

@nikolaevas
Copy link
Author

I can't get order items again. I posted new orders to (#13037).
First I got this message:

We have not yet supported en to de, we will inform you when ready

Then I successfully posted order to zh-TW. But I got {"items":{}} when tried to get items. Also I don't see last orders in account.

@VLMH
Copy link
Contributor

VLMH commented Oct 5, 2013

Got your problem and I have fixed the data in DB so that you can continue your work.
Since it's a random bug, we need more time to fix it as it's hard to replicate.
Sorry for this new bug but I think you can still keep trying since it's not happening every time and I will fix the data DB immediately to minimize the inconvenience to you.

@nikolaevas
Copy link
Author

@VLMH I'm still can't post orders and get items.

@loking
Copy link
Contributor

loking commented Oct 5, 2013

@nikolaevas The bug is quite random (should be related to queuing ) and I am now looking into the whole flow. Have just made a quick fix for you.

@nikolaevas
Copy link
Author

Nothing has changed. The same problem. There is no last order in my account.

@loking
Copy link
Contributor

loking commented Oct 5, 2013

The problem cause the items not imported thus no order at all. Please try again with a new call.

@nikolaevas
Copy link
Author

I posted new unique items and got the same problem.

@loking
Copy link
Contributor

loking commented Oct 5, 2013

I am now checking the whole flow and will add a auto-unlocking solution for you first. Keep you updated here.

@loking
Copy link
Contributor

loking commented Oct 5, 2013

@nikolaevas

We found the bug is caused by frequent consecutive calls. Have just fixed it now and shall be alright. Please try again (and I will be tracking the system as well to see if anything strange)

I've tried myself to place 3 orders within a second and no problems for that.

@nikolaevas
Copy link
Author

I posted order again. No orders in account, no translated items {"items":{}}

@loking
Copy link
Contributor

loking commented Oct 5, 2013

I've tried again using your project 13266 and found it works after I cleared some caches.

Shall you simply create a new project for testing? Thanks.

And it takes some time to process the order with Bing so it shall not return items immediately.

@nikolaevas
Copy link
Author

I created new project (#13358) and posted two orders (#46758, #46759). But I don't see this orders in account.

@loking
Copy link
Contributor

loking commented Oct 5, 2013

Shall you let me know the request parameters?

This is mine and it works:

array(
                                       'from_locale'        => 'en',
                                       'to_locales'         => 'de,fr',
                                       'items'              => array(
                                           'product_3_34'         => array(
                                               'title'          => 'Product Sony Smartphone',
                                               'content'        => 'Content'
                                           ),
                                           'item_2'         => array(
                                               'title'          => 'Title',
                                               'content'        => 'Content'
                                           )
                                       )
);

@loking
Copy link
Contributor

loking commented Oct 5, 2013

I am wondering if the locale value got problem because we've made some updates to the locale yesterday.

@nikolaevas
Copy link
Author

I changed locales: en-US to en, zh-TW to zh and got the same problem.

My params:

$params = json_encode(array(
    'api_key' => 'TXV5PolvWtC2Z0jnWuvJPbWYArEyTBhD',
    'timestamp' => $timestamp,
    'dev_hash' => $hash,
    'from_locale' => 'en',
    'to_locales' => 'zh',
    'items' => array(
        'product_3_34' => array(
            'title' => 'Product Sony Smartphone',
            'content' => 'Product content'
        )
    )
));

@loking
Copy link
Contributor

loking commented Oct 5, 2013

Please use zh-TW for zh. I am sorry that we didn't figure out the potential problem here when updating the codes yesterday.

You may run GET /locales again to see the content.

@nikolaevas
Copy link
Author

Earned! Thanks you!

@loking
Copy link
Contributor

loking commented Oct 5, 2013

Will add more error messages there. Thanks.

@loking
Copy link
Contributor

loking commented Oct 28, 2013

@vincentchan @nikolaevas
We found a job got the problem thus the queue was stuck. I've released the queue for your account and you may try again. We are now looking into the issues.

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

No branches or pull requests

3 participants