Skip to content

pyactiveresource.connection.Error: Not Found: fulfillments.json when creating fulfillment #685

@heysander

Description

@heysander

Issue summary

We get this error
pyactiveresource.connection.Error: Not Found: https://.myshopify.com/admin/api/2023-04/orders//fulfillments.json when we try to create a fulfilment via shopify.Fulfillment.

Expected behavior

Fulfilment should be created

Actual behavior

We get this error message: pyactiveresource.connection.Error: Not Found: https://.myshopify.com/admin/api/2023-04/orders//fulfillments.json

We use this code to create a fulfilment
` shopify.ShopifyResource.activate_session(session)

shopify_order = shopify.Order.find(order_id)

fulfillment = shopify.Fulfillment({'order_id': shopify_order.id, 'line_items': shopify_order.line_items,
                                   'location_id': location.location_id})

fulfillment.tracking_company = tracking_company
fulfillment.tracking_number = tracking_number
fulfillment.tracking_url = tracking_url
fulfillment.notify_customer = True
fulfillment.save()

shopify.ShopifyResource.clear_session()

`
It always went well, but the last shops using our software get the error. We found a few threads with issues creating fulfilment and following advises from there did not solve it yet for us.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions