Giter VIP home page Giter VIP logo

Comments (7)

fs-wizard avatar fs-wizard commented on July 18, 2024

The only way to figure it out is to debug on your server. Try https://github.com/freescout-helpdesk/freescout/wiki/Debugging

from freescout.

aaversa avatar aaversa commented on July 18, 2024

This is the error in the logs, are you looking for more detail than this?

[WooCommerce] HTTP Status Code: 0 (Store not found at the specified URL) | Requested resource: https://impactsoundworks.com/wp-json/wc/v2/orders

I am 100% sure this is the correct endpoint. I have just used Postman and tested it for myself - it is correct and returning data as expected with a simple GET request.

from freescout.

fs-wizard avatar fs-wizard commented on July 18, 2024

#4017 (comment)

from freescout.

fs-wizard avatar fs-wizard commented on July 18, 2024

Unfortunately we can't tell what can be the reason of the problem from here. The only way to do it is for someone to investigate it on your server.

from freescout.

aaversa avatar aaversa commented on July 18, 2024

By "your server" do you mean the server hosting Freescout? If so, as I showed in the logs, the only error is that HTTP Status Code 0. But that doesn't make sense as, like I said, every other application that uses my store's API (there are dozens) work perfectly, including Postman running on my computer. Is the WooCommerce module open source? Can I open it up and see if I can debug this myself?

EDIT: I've done this and spent awhile testing. The problem seems to be a cURL timeout... Our WooCommerce store db is quite large as we have many hundreds of thousands of orders. Requesting the orders on-demand like this takes about 40 seconds when going through the WP/Woo application layer. (A direct MySQL query is much much faster.)

I was looking into how Helpscout handles this, and it seems like rather than on-demand grabbing orders when you first open an email, it uses a store server-side plugin possibly in combination with caching data on the Freescout side.

I'm curious if this module is being used by any other stores in the 400k+ order range and how it performs for them.

In the short term perhaps I can adjust the cURL timeout manually.

from freescout.

aaversa avatar aaversa commented on July 18, 2024

@freescout-helpdesk I have just rewritten some aspects of the WooCommerce integration.

The retrieval time has gone from 40s to less than 1 second.

I did this by working with Automattic to create a new endpoint via WC plugin that is orders of magnitude faster. I then added an integration via a separate plugin on the Orders page for customers allowing them to submit a ticket easily. See screenshots.

The plugins are not really polished but they do work and makes the functionality equivalent to Helpscout.

Are you interested in taking a look at our work?

need help form
Orders screen

from freescout.

fs-wizard avatar fs-wizard commented on July 18, 2024

You can send the code to [email protected]
We'll take a look.

from freescout.

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.