npm install marks docusaurus dependencies as outdated/vulnerable

Recently installed the package, so forgive me if I'm reporting something already known but It would be cool, if possible, to address the vulnerabilities. I'm aware of Docusaurus usually having builds with vulnerabilities, however it could be removed from the final dependencies of the package since it's not needed for it to work.
Here's the audit report:
# npm audit report

got  <11.8.5
Severity: moderate
Got allows a redirect to a UNIX socket - https://github.com/advisories/GHSA-pfrx-2q88-qq97
No fix available
node_modules/got
  package-json  <=6.5.0
  Depends on vulnerable versions of got
  node_modules/package-json
    latest-version  0.2.0 - 5.1.0
    Depends on vulnerable versions of package-json
    node_modules/latest-version
      update-notifier  0.2.0 - 5.1.0
      Depends on vulnerable versions of latest-version
      node_modules/update-notifier
        @docusaurus/core  *
        Depends on vulnerable versions of @docusaurus/mdx-loader
        Depends on vulnerable versions of update-notifier
        node_modules/@docusaurus/core
          @docusaurus/plugin-debug  *
          Depends on vulnerable versions of @docusaurus/core
          node_modules/@docusaurus/plugin-debug
          @docusaurus/plugin-google-analytics  *
          Depends on vulnerable versions of @docusaurus/core
          node_modules/@docusaurus/plugin-google-analytics
          @docusaurus/plugin-google-gtag  *
          Depends on vulnerable versions of @docusaurus/core
          node_modules/@docusaurus/plugin-google-gtag
          @docusaurus/plugin-sitemap  *
          Depends on vulnerable versions of @docusaurus/core
          node_modules/@docusaurus/plugin-sitemap
          @docusaurus/preset-classic  *
          Depends on vulnerable versions of @docusaurus/core
          Depends on vulnerable versions of @docusaurus/plugin-content-blog
          Depends on vulnerable versions of @docusaurus/plugin-content-docs
          Depends on vulnerable versions of @docusaurus/plugin-content-pages
          Depends on vulnerable versions of @docusaurus/plugin-debug
          Depends on vulnerable versions of @docusaurus/plugin-google-analytics
          Depends on vulnerable versions of @docusaurus/plugin-google-gtag
          Depends on vulnerable versions of @docusaurus/plugin-sitemap
          Depends on vulnerable versions of @docusaurus/theme-classic
          Depends on vulnerable versions of @docusaurus/theme-common
          Depends on vulnerable versions of @docusaurus/theme-search-algolia
          node_modules/@docusaurus/preset-classic
          @docusaurus/theme-search-algolia  *
          Depends on vulnerable versions of @docusaurus/core
          Depends on vulnerable versions of @docusaurus/plugin-content-docs
          Depends on vulnerable versions of @docusaurus/theme-common
          node_modules/@docusaurus/theme-search-algolia
          @rbxts/bridgenet  <=1.9.9
          Depends on vulnerable versions of @docusaurus/core
          Depends on vulnerable versions of @docusaurus/preset-classic
          node_modules/@rbxts/bridgenet

trim  <0.0.3
Severity: high
Regular Expression Denial of Service in trim - https://github.com/advisories/GHSA-w5p7-h5w8-2hfq
fix available via `npm audit fix`
node_modules/trim
  remark-parse  <=8.0.3
  Depends on vulnerable versions of trim
  node_modules/remark-parse
    @mdx-js/mdx  <=1.6.22
    Depends on vulnerable versions of remark-mdx
    Depends on vulnerable versions of remark-parse
    node_modules/@mdx-js/mdx
      @docusaurus/mdx-loader  *
      Depends on vulnerable versions of @mdx-js/mdx
      node_modules/@docusaurus/mdx-loader
        @docusaurus/plugin-content-blog  *
        Depends on vulnerable versions of @docusaurus/core
        Depends on vulnerable versions of @docusaurus/mdx-loader
        node_modules/@docusaurus/plugin-content-blog
        @docusaurus/plugin-content-docs  *
        Depends on vulnerable versions of @docusaurus/core
        Depends on vulnerable versions of @docusaurus/mdx-loader
        node_modules/@docusaurus/plugin-content-docs
        @docusaurus/plugin-content-pages  *
        Depends on vulnerable versions of @docusaurus/core
        Depends on vulnerable versions of @docusaurus/mdx-loader
        node_modules/@docusaurus/plugin-content-pages
        @docusaurus/theme-classic  *
        Depends on vulnerable versions of @docusaurus/core
        Depends on vulnerable versions of @docusaurus/mdx-loader
        Depends on vulnerable versions of @docusaurus/plugin-content-blog
        Depends on vulnerable versions of @docusaurus/plugin-content-docs
        Depends on vulnerable versions of @docusaurus/plugin-content-pages
        Depends on vulnerable versions of @docusaurus/theme-common
        node_modules/@docusaurus/theme-classic
        @docusaurus/theme-common  *
        Depends on vulnerable versions of @docusaurus/mdx-loader
        Depends on vulnerable versions of @docusaurus/plugin-content-blog
        Depends on vulnerable versions of @docusaurus/plugin-content-docs
        Depends on vulnerable versions of @docusaurus/plugin-content-pages
        node_modules/@docusaurus/theme-common
    remark-mdx  <=1.6.22
    Depends on vulnerable versions of remark-parse
    node_modules/remark-mdx

22 vulnerabilities (9 moderate, 13 high)

I could've sworn Docusaurus was a dev-dependency. it should be, this is my mistake. I'll fix this in the next release candidate for 2.0 👍


Creating new API version for ADF

This checklist is used to make sure that common issues in a pull request are addressed. This will expedite the process of getting your pull request merged and avoid extra work on your part to fix issues discovered during the review process.
PR information

[ ] The title of the PR is clear and informative.
[ ] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
[ ] Except for special cases involving multiple contributors, the PR is started from a fork of the main repository, not a branch.
[ ] If applicable, the PR references the bug/issue that it fixes.
[ ] Swagger files are correctly named (e.g. the api-version in the path should match the api-version in the spec).

Quality of Swagger

[ ] I have read the contribution guidelines.
[ ] My spec meets the review criteria:

[ ] The spec conforms to the Swagger 2.0 specification.
[ ] The spec follows the guidelines described in the Swagger checklist document.
[ ] Validation tools were run on swagger spec(s) and have all been fixed in this PR.

Automation for azure-sdk-for-ruby

Automation for azure-sdk-for-python

Automation for azure-sdk-for-java

Automation for azure-sdk-for-go

Automation for azure-sdk-for-node

Just learned from @hvermis  that this was already approved by ARM in private repo hence removing the ARM specific label and review request.

Sync-ed with Hermine. There are some changes since last arm review (mainly query part was reviewed last time), hence requesting arm review.

Signing off!


DataviewJS not working for me

Hi, I am having issues with DataviewJS
I am able to use Dataview without issues, but when I try to use DataviewJS I get this result:

From my Vault, this is how it looks:

Do you have any idea why DataviewJS broke in my case? 😦
Thanks!

Hi, I am having issues with DataviewJS
I am able to use Dataview without issues, but when I try to use DataviewJS I get this result:

From my Vault, this is how it looks:

Do you have any idea why DataviewJS broke in my case? 😦
Thanks!

Did you solve your problem? If so, how?


IIS Express URL encoding colon (:) causing URL not found for Analytics API

I'm attempting to use the Google Analytics Reporting V4 .Net API with Server credentials and am making the following request:
 var batchRequest = AnalyticsReportingService.Reports.BatchGet(getReportsRequest);
var response = batchRequest.Execute();

However the request being made to analyticsreporting.googleapis.com is the following:
/v4/reports%3AbatchGet
which returns the response from Google
The requested URL /v4/reports%3AbatchGet was not found on this server.  That’s all we know.
this is because IIS Express is encoding the colon for reports:batchGet into %3A and the api call is not recognised however I can't find anyway to stop this from happening. Any help appreciated.
Thanks.

Could you specify the exact NuGet package version you're using? If it's 1.31.0, try 1.31.1 instead - we fixed this yesterday.

Oh wow, that's bad timing I guess as I only installed this yesterday. That problem is all fixed now although I'm getting:
{
  "error": {
    "code": 403,
    "message": "User does not have any Google Analytics account.",
    "errors": [
      {
        "message": "User does not have any Google Analytics account.",
        "domain": "global",
        "reason": "forbidden"
      }
    ],
    "status": "PERMISSION_DENIED"
  }
}

as a response now which makes no sense as I've created a service account seemingly correct so I'm unsure.

Possibly this? https://stackoverflow.com/questions/12837748
Closing this issue as the colon part is resolved.


QSVM tutorial receives connection error: Error code 400

Informations

Qiskit Aqua version: 0.5.1
Python version: 3.6.8
Operating system: Windows 10

What is the current behavior?
When I run a variation of the QSVM tutorial found here, it will initially connect to a backend (typically ibmqx2 or ibmqx4), but then fails to fully connect. I was able to run this code a week or so ago without any issues, but now I'm receiving these error messages in a repeated loop. Occasionally, if I wait long enough, after 5-10 minutes the job will be able to connect and give me a result, but not always.
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
FAILURE: Can not get job id, Resubmit the qobj to get job id.Terra job error: "{'status': 400, 'message': 'Generic error', 'code': 'GENERIC_ERROR'}"

Steps to reproduce the problem
This is my code (the breast cancer function can be found here):
feature_dim = 2
n = 2 # How many features to use (dimensionality)
training_dataset_size = 20
testing_dataset_size = 10
sample_Total, training_input, test_input, class_labels = Breast_cancer(training_dataset_size,
                                                                                testing_dataset_size, n)
datapoints, class_to_label = split_dataset_to_data_and_labels(test_input)
try:
    # select least busy available device and execute.
    least_busy_device = least_busy(IBMQ.backends(simulator=False))
except:
    print("All devices are currently unavailable.")
    sys.exit()
seed = 10598
feature_map = SecondOrderExpansion(feature_dimension=feature_dim, depth=2,
                        entanglement='linear')
qsvm = QSVM(feature_map, training_input, test_input)
backend = BasicAer.get_backend('qasm_simulator')
quantum_instance = QuantumInstance(least_busy_device, shots=1, seed=seed,
                                  seed_transpiler=seed, circuit_caching=False, skip_qobj_validation=True)
result = qsvm.run(quantum_instance, timeout=500)
print(result)

Suggested solutions
I am not sure why I am having trouble fully connecting with the backend; I have been able to submit simpler jobs (like a short Bell State) without any issues, but the QSVM has not been able to run without the Error 400 messages.

@TMaher13 do you try to run on ibmq_16_melbourne ?

I ran the same codes on ibmqx2 now and it works but I do get many status 400, too.
2019-06-25 22:29:50,886:qiskit.aqua.algorithms.many_sample.qsvm.qsvm:DEBUG: Building circuits:
|██████████████████████████████████████████████████| 780/780 [00:00:00:00]
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
2019-06-25 22:30:48,106:qiskit.aqua.utils.run_circuits:WARNING: FAILURE: Can not get job id, Resubmit the qobj to get job id.Terra job error: "{'status': 400, 'message': 'Generic error', 'code': 'GENERIC_ERROR'}"
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
2019-06-25 22:30:59,062:qiskit.aqua.utils.run_circuits:WARNING: FAILURE: Can not get job id, Resubmit the qobj to get job id.Terra job error: "{'status': 400, 'message': 'Generic error', 'code': 'GENERIC_ERROR'}"
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
2019-06-25 22:31:04,650:qiskit.aqua.utils.run_circuits:WARNING: FAILURE: Can not get job id, Resubmit the qobj to get job id.Terra job error: "{'status': 400, 'message': 'Generic error', 'code': 'GENERIC_ERROR'}"
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
2019-06-25 22:31:10,964:qiskit.aqua.utils.run_circuits:WARNING: FAILURE: Can not get job id, Resubmit the qobj to get job id.Terra job error: "{'status': 400, 'message': 'Generic error', 'code': 'GENERIC_ERROR'}"
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
2019-06-25 22:31:19,768:qiskit.aqua.utils.run_circuits:WARNING: FAILURE: Can not get job id, Resubmit the qobj to get job id.Terra job error: "{'status': 400, 'message': 'Generic error', 'code': 'GENERIC_ERROR'}"
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
2019-06-25 22:31:25,434:qiskit.aqua.utils.run_circuits:WARNING: FAILURE: Can not get job id, Resubmit the qobj to get job id.Terra job error: "{'status': 400, 'message': 'Generic error', 'code': 'GENERIC_ERROR'}"
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
2019-06-25 22:31:30,909:qiskit.aqua.utils.run_circuits:WARNING: FAILURE: Can not get job id, Resubmit the qobj to get job id.Terra job error: "{'status': 400, 'message': 'Generic error', 'code': 'GENERIC_ERROR'}"
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
2019-06-25 22:31:41,046:qiskit.aqua.utils.run_circuits:WARNING: FAILURE: Can not get job id, Resubmit the qobj to get job id.Terra job error: "{'status': 400, 'message': 'Generic error', 'code': 'GENERIC_ERROR'}"
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
2019-06-25 22:31:46,373:qiskit.aqua.utils.run_circuits:WARNING: FAILURE: Can not get job id, Resubmit the qobj to get job id.Terra job error: "{'status': 400, 'message': 'Generic error', 'code': 'GENERIC_ERROR'}"
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
2019-06-25 22:31:52,017:qiskit.aqua.utils.run_circuits:WARNING: FAILURE: Can not get job id, Resubmit the qobj to get job id.Terra job error: "{'status': 400, 'message': 'Generic error', 'code': 'GENERIC_ERROR'}"
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
2019-06-25 22:32:00,612:qiskit.aqua.utils.run_circuits:WARNING: FAILURE: Can not get job id, Resubmit the qobj to get job id.Terra job error: "{'status': 400, 'message': 'Generic error', 'code': 'GENERIC_ERROR'}"
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
2019-06-25 22:32:06,544:qiskit.aqua.utils.run_circuits:WARNING: FAILURE: Can not get job id, Resubmit the qobj to get job id.Terra job error: "{'status': 400, 'message': 'Generic error', 'code': 'GENERIC_ERROR'}"
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
2019-06-25 22:32:11,633:qiskit.aqua.utils.run_circuits:WARNING: FAILURE: Can not get job id, Resubmit the qobj to get job id.Terra job error: "{'status': 400, 'message': 'Generic error', 'code': 'GENERIC_ERROR'}"
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
2019-06-25 22:32:19,042:qiskit.aqua.utils.run_circuits:WARNING: FAILURE: Can not get job id, Resubmit the qobj to get job id.Terra job error: "{'status': 400, 'message': 'Generic error', 'code': 'GENERIC_ERROR'}"
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
2019-06-25 22:32:23,725:qiskit.aqua.utils.run_circuits:WARNING: FAILURE: Can not get job id, Resubmit the qobj to get job id.Terra job error: "{'status': 400, 'message': 'Generic error', 'code': 'GENERIC_ERROR'}"
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
2019-06-25 22:32:28,560:qiskit.aqua.utils.run_circuits:WARNING: FAILURE: Can not get job id, Resubmit the qobj to get job id.Terra job error: "{'status': 400, 'message': 'Generic error', 'code': 'GENERIC_ERROR'}"
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
Got a 400 code response to /api/Jobs: {"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}
2019-06-25 22:32:35,672:qiskit.aqua.utils.run_circuits:INFO: Backend status: BackendStatus(backend_name='ibmqx2', backend_version='1.0.0', operational=True, pending_jobs=4, status_msg='active')
2019-06-25 22:32:35,673:qiskit.aqua.utils.run_circuits:INFO: There are 11 jobs are submitted.
2019-06-25 22:32:35,674:qiskit.aqua.utils.run_circuits:INFO: All job ids:
['5d12d8d07302860078d94b95', '5d12d8d3f5a2c9007258dc79', '5d12d8d66d110f007453daed', '5d12d8d86d110f007453daef', '5d12d8dc628a51007ba1c6ea', '5d12d8e892584d0070da3831', '5d12d8fc782b67007461857b', '5d12d911361a280070fa0b69', '5d12d925782b67007461857d', '5d12d9389ba7e6007350ab65', '5d12d94d628a51007ba1c6ec']
2019-06-25 22:32:35,675:qiskit.aqua.utils.run_circuits:INFO: Running 0-th qobj, job id: 5d12d8d07302860078d94b95
2019-06-25 22:32:36,593:qiskit.aqua.utils.run_circuits:INFO: COMPLETED the 0-th qobj, job id: 5d12d8d07302860078d94b95
2019-06-25 22:32:36,594:qiskit.aqua.utils.run_circuits:INFO: Running 1-th qobj, job id: 5d12d8d3f5a2c9007258dc79
2019-06-25 22:32:37,525:qiskit.aqua.utils.run_circuits:INFO: COMPLETED the 1-th qobj, job id: 5d12d8d3f5a2c9007258dc79
2019-06-25 22:32:37,526:qiskit.aqua.utils.run_circuits:INFO: Running 2-th qobj, job id: 5d12d8d66d110f007453daed
2019-06-25 22:34:12,980:qiskit.aqua.utils.run_circuits:INFO: COMPLETED the 2-th qobj, job id: 5d12d8d66d110f007453daed
2019-06-25 22:34:12,980:qiskit.aqua.utils.run_circuits:INFO: Running 3-th qobj, job id: 5d12d8d86d110f007453daef
2019-06-25 22:34:14,386:qiskit.aqua.utils.run_circuits:INFO: COMPLETED the 3-th qobj, job id: 5d12d8d86d110f007453daef
2019-06-25 22:34:14,387:qiskit.aqua.utils.run_circuits:INFO: Running 4-th qobj, job id: 5d12d8dc628a51007ba1c6ea
2019-06-25 22:34:15,320:qiskit.aqua.utils.run_circuits:INFO: COMPLETED the 4-th qobj, job id: 5d12d8dc628a51007ba1c6ea
2019-06-25 22:34:15,321:qiskit.aqua.utils.run_circuits:INFO: Running 5-th qobj, job id: 5d12d8e892584d0070da3831
2019-06-25 22:34:17,084:qiskit.aqua.utils.run_circuits:INFO: COMPLETED the 5-th qobj, job id: 5d12d8e892584d0070da3831
2019-06-25 22:34:17,084:qiskit.aqua.utils.run_circuits:INFO: Running 6-th qobj, job id: 5d12d8fc782b67007461857b
2019-06-25 22:34:18,027:qiskit.aqua.utils.run_circuits:INFO: COMPLETED the 6-th qobj, job id: 5d12d8fc782b67007461857b
2019-06-25 22:34:18,027:qiskit.aqua.utils.run_circuits:INFO: Running 7-th qobj, job id: 5d12d911361a280070fa0b69
2019-06-25 22:34:19,155:qiskit.aqua.utils.run_circuits:INFO: COMPLETED the 7-th qobj, job id: 5d12d911361a280070fa0b69
2019-06-25 22:34:19,156:qiskit.aqua.utils.run_circuits:INFO: Running 8-th qobj, job id: 5d12d925782b67007461857d
2019-06-25 22:34:20,070:qiskit.aqua.utils.run_circuits:INFO: COMPLETED the 8-th qobj, job id: 5d12d925782b67007461857d
2019-06-25 22:34:20,071:qiskit.aqua.utils.run_circuits:INFO: Running 9-th qobj, job id: 5d12d9389ba7e6007350ab65
2019-06-25 22:34:21,213:qiskit.aqua.utils.run_circuits:INFO: COMPLETED the 9-th qobj, job id: 5d12d9389ba7e6007350ab65
2019-06-25 22:34:21,214:qiskit.aqua.utils.run_circuits:INFO: Running 10-th qobj, job id: 5d12d94d628a51007ba1c6ec
2019-06-25 22:34:22,230:qiskit.aqua.utils.run_circuits:INFO: COMPLETED the 10-th qobj, job id: 5d12d94d628a51007ba1c6ec
2019-06-25 22:34:22,271:qiskit.aqua.algorithms.many_sample.qsvm.qsvm:DEBUG: Calculating overlap:
|██████████████████████████████████████████████████| 780/780 [00:00:00:00]
2019-06-25 22:34:52,017:qiskit.aqua.utils.qp_solver:DEBUG: Solving QP problem is completed.

@chunfuchen I receive the same status 400 codes when running on ibmq_16_melbourne.

@TMaher13 do you mind refer to my comment here https://github.com/Qiskit/qiskit-aqua/issues/584#issuecomment-506503091?
Please let me know if you still encounter this issue when you switch to new API

@chunfuchen Following that issue and the version environment you used (Qiskit 10.4, qiskit-ibmq-provider 0.2.2, etc), I get a bunch of status 403 codes. I saw on the slack channel a couple people were saying that qiskit is doing away with the credit system though? This is the error message I'm getting:
Got a 403 code response to /api/Network/ibm-q/Groups/open/Projects/main/jobs: {"error":{"statusCode":403,"name":"NOT_CREDITS_AVALIABLES","message":"NOT_CREDITS_AVALIABLES","code":"NOT_CREDITS_AVALIABLES"}}
FAILURE: Can not get job id, Resubmit the qobj to get job id.Error: Got a 403 code response to /api/Network/ibm-q/Groups/open/Projects/main/jobs: {"error":{"statusCode":403,"name":"NOT_CREDITS_AVALIABLES","message":"NOT_CREDITS_AVALIABLES","code":"NOT_CREDITS_AVALIABLES"}}

May I know how do you enable your accounts?

IBMQ.enable_account(token, url='https://api.quantum-computing.ibm.com/api/Hubs/ibm-q/Groups/open/Projects/main')
Where 'token' is the string of my API token taken from my IBM Q account. It finishes after a while of giving me the status 403 codes if I just let it run, same as the 400 codes

Hi, I will only get 403 error (about do not have enough credits) after using new API, I had let my job run few hours but still get 403 error only. Do you mind posting the error message after you switch to new API? Thanks

By new API do you mean updating qiskit-aqua to 0.5.2 from 0.5.1? I updated qiskit-aqua and then ran my code again. It gave the 403 code for about 30 minutes then gave me the results.

the new API I mean using this url 'https://api.quantum-computing.ibm.com/api/Hubs/ibm-q/Groups/open/Projects/main'
Encounter 403 error code is normal since you did not have enough credit, you need to wait until you have enough credits. Do you still encounter the 400 error?

I don't receive the 400 error anymore, but I still get the 403 error even after I waited 24 hours to run something. I ran the same code on a different IBM Q account that has not ran anything in several days, and it still got stuck on the 403 error.

@TMaher13 do you see any job is launched at this page? https://quantum-computing.ibm.com/results
You can consider the 400 error of old API is similar to the 403 error of new API.

@chunfuchen My page shows that my jobs submitted all had completed, even though some of them never returned the results to me.
The account column is blank for all jobs though, could that be why? That seems odd since I use the IBMQ.enable_account(token, uri) API call.

@chunfuchen My page shows that my jobs submitted all had completed, even though some of them never returned the results to me.

So some jobs are completed but Aqua keeps returning you 403 error? If so, I will try to reproduce and fix it.
Or you do not see any job after you encounter 403 error?
For me, after I encounter 403 error, then I will keep getting 403 error and no job is submitted (no new job are pending in the dashboard). I need to wait until my credit is enough and then try again later.

The account column is blank for all jobs though, could that be why? That seems odd since I use the IBMQ.enable_account(token, uri) API call.

I think blank column for the account is okay.

The jobs that I submit show up even when I encounter the 403 error, and sometimes it shows multiple result IDs for each job I submit.
I just attempted to submit a job using the same code for the first time in 3 days and still get the 403 error. When I look on the API dashboard, I see 9 unique IDs for my job all saying the status is COMPLETED (they show up in the Pending Results and then Latest Results once they are "finished").

@TMaher13 Thanks. I think there is a bug after switching to the new API. I will try to reproduce and fix it.

After multiple attempts, I still can not see any job in my dashboard (IBMQ website) If I get the 403 error.
I created a PR that handles the Error properly, and hope that will provide more information. #591
Here is my log from Not available credits till successfully submitting jobs.
Got a 403 code response to /api/Network/ibm-q/Groups/open/Projects/main/jobs: {"error":{"statusCode":403,"name":"NOT_CREDITS_AVALIABLES","message":"NOT_CREDITS_AVALIABLES","code":"NOT_CREDITS_AVALIABLES"}}
2019-07-08 15:39:54,331:qiskit.aqua.utils.run_circuits:WARNING: FAILURE: Encounter error during submitting the qobj. Will resubmit it. IBMQ api error: Got a 403 code response to /api/Network/ibm-q/Groups/open/Projects/main/jobs: {"error":{"statusCode":403,"name":"NOT_CREDITS_AVALIABLES","message":"NOT_CREDITS_AVALIABLES","code":"NOT_CREDITS_AVALIABLES"}}
Got a 403 code response to /api/Network/ibm-q/Groups/open/Projects/main/jobs: {"error":{"statusCode":403,"name":"NOT_CREDITS_AVALIABLES","message":"NOT_CREDITS_AVALIABLES","code":"NOT_CREDITS_AVALIABLES"}}
2019-07-08 15:40:00,736:qiskit.aqua.utils.run_circuits:WARNING: FAILURE: Encounter error during submitting the qobj. Will resubmit it. IBMQ api error: Got a 403 code response to /api/Network/ibm-q/Groups/open/Projects/main/jobs: {"error":{"statusCode":403,"name":"NOT_CREDITS_AVALIABLES","message":"NOT_CREDITS_AVALIABLES","code":"NOT_CREDITS_AVALIABLES"}}
Got a 403 code response to /api/Network/ibm-q/Groups/open/Projects/main/jobs: {"error":{"statusCode":403,"name":"NOT_CREDITS_AVALIABLES","message":"NOT_CREDITS_AVALIABLES","code":"NOT_CREDITS_AVALIABLES"}}
2019-07-08 15:40:07,085:qiskit.aqua.utils.run_circuits:WARNING: FAILURE: Encounter error during submitting the qobj. Will resubmit it. IBMQ api error: Got a 403 code response to /api/Network/ibm-q/Groups/open/Projects/main/jobs: {"error":{"statusCode":403,"name":"NOT_CREDITS_AVALIABLES","message":"NOT_CREDITS_AVALIABLES","code":"NOT_CREDITS_AVALIABLES"}}
Got a 403 code response to /api/Network/ibm-q/Groups/open/Projects/main/jobs: {"error":{"statusCode":403,"name":"NOT_CREDITS_AVALIABLES","message":"NOT_CREDITS_AVALIABLES","code":"NOT_CREDITS_AVALIABLES"}}
2019-07-08 15:40:13,922:qiskit.aqua.utils.run_circuits:WARNING: FAILURE: Encounter error during submitting the qobj. Will resubmit it. IBMQ api error: Got a 403 code response to /api/Network/ibm-q/Groups/open/Projects/main/jobs: {"error":{"statusCode":403,"name":"NOT_CREDITS_AVALIABLES","message":"NOT_CREDITS_AVALIABLES","code":"NOT_CREDITS_AVALIABLES"}}
2019-07-08 15:40:21,831:qiskit.aqua.utils.run_circuits:INFO: Backend status: BackendStatus(backend_name='ibmqx4', backend_version='1.0.0', operational=True, pending_jobs=4, status_msg='active')
2019-07-08 15:40:21,832:qiskit.aqua.utils.run_circuits:INFO: There are 1 jobs are submitted.
2019-07-08 15:40:21,833:qiskit.aqua.utils.run_circuits:INFO: All job ids:
['5d239c2667f6530011105679']
2019-07-08 15:40:21,833:qiskit.aqua.utils.run_circuits:INFO: Running 0-th qobj, job id: 5d239c2667f6530011105679
2019-07-08 15:43:25,460:qiskit.aqua.utils.run_circuits:INFO: COMPLETED the 0-th qobj, job id: 5d239c2667f6530011105679
2019-07-08 15:43:25,461:qiskit.aqua.algorithms.many_sample.qsvm.qsvm:DEBUG: Calculating overlap:
|██████████████████████████████████████████████████| 6/6 [00:00:00:00]
2019-07-08 15:43:25,609:qiskit.aqua.utils.qp_solver:DEBUG: Solving QP problem is completed.
2019-07-08 15:43:25,611:qiskit.aqua.algorithms.many_sample.qsvm.qsvm:DEBUG: Building circuits:
|██████████████████████████████████████████████████| 8/8 [00:00:00:00]
2019-07-08 15:43:30,271:qiskit.aqua.utils.run_circuits:INFO: Backend status: BackendStatus(backend_name='ibmqx4', backend_version='1.0.0', operational=True, pending_jobs=4, status_msg='active')
2019-07-08 15:43:30,272:qiskit.aqua.utils.run_circuits:INFO: There are 1 jobs are submitted.
2019-07-08 15:43:30,273:qiskit.aqua.utils.run_circuits:INFO: All job ids:
['5d239ce267f653001110567b']

This should no longer occur in Aqua 0.6. Closing, if the problem that you experienced still continues for you either reopen or raise a new issue.

@chunfuchen  Hi, we are experiencing the same problem when using Qsvm as described above :  403 Client Error: Forbidden for url: https://api-qcon.quantum-computing.ibm.com/api/Network/ibm-q/Groups/open/Projects/main/Jobs?access_token=.... NOT_CREDITS_AVALIABLES, Error code: NOT_CREDITS_AVALIABLES.  with Aqua 0.6   :-(
2019-10-04 10:26:25,814:qiskit.aqua.algorithms.many_sample.qsvm.qsvm:DEBUG: Building circuits:
|██████████████████████████████████████████████████| 435/435 [00:00:00:00]
2019-10-04 10:27:28,305:qiskit.aqua.utils.run_circuits:WARNING: FAILURE: Can not get job id, Resubmit the qobj to get job id.Error: 403 Client Error: Forbidden for url: https://api-qcon.quantum-computing.ibm.com/api/Network/ibm-q/Groups/open/Projects/main/Jobs?access_token=.... NOT_CREDITS_AVALIABLES, Error code: NOT_CREDITS_AVALIABLES.

We are using qiskit 0.12.0 and the following components version

We're running on Open device  (vigo or ourence) and after a chunk of about 280 error messages (NOT_CREDITS_AVALIABLES) that took about 15 minutes,  the jobs are successfully executed
2019-10-04 10:40:20,443:qiskit.aqua.utils.run_circuits:WARNING: FAILURE: Can not get job id, Resubmit the qobj to get job id.Error: 403 Client Error: Forbidden for url: https://api-qcon.quantum-computing.ibm.com/api/Network/ibm-q/Groups/open/Projects/main/Jobs?access_token=.... NOT_CREDITS_AVALIABLES, Error code: NOT_CREDITS_AVALIABLES.
2019-10-04 10:40:24,393:qiskit.aqua.utils.run_circuits:INFO: Backend status: BackendStatus(backend_name='ibmq_vigo', backend_version='1.0.1', operational=True, pending_jobs=5, status_msg='active')
2019-10-04 10:40:24,393:qiskit.aqua.utils.run_circuits:INFO: There are 6 jobs are submitted.
2019-10-04 10:40:24,393:qiskit.aqua.utils.run_circuits:INFO: All job ids:
['5d97025849e903001915bebf', '5d97025d06da890018816dad', '5d9702615110a30018ef0f93', '5d970266a5fb6b00194d23d9', '5d97026a65da3400187d2d7d', '5d9705765110a30018ef0f94']
2019-10-04 10:40:24,393:qiskit.aqua.utils.run_circuits:INFO: Running 0-th qobj, job id: 5d97025849e903001915bebf
2019-10-04 10:40:26,361:qiskit.aqua.utils.run_circuits:INFO: COMPLETED the 0-th qobj, job id: 5d97025849e903001915bebf
.................................
.................................

I noticed issue #395 in qiskit referencing  "Error msg typo: NOT_CREDITS_AVALIABLES #395"
but seems to be related to the typo only ?? :-)
Patrick


Consider redacting printing of Axis types

This PR reduces the very long stacktraces that can sometimes occur with ComponentArrays, by having by introducing a redacted form of Base.show for Axis types.
Example:
using ComponentArrays
h() = nothing
h(ComponentArray(zeros(3, 2), Axis((:first, :second, :third, :fourth)), FlatAxis()))

now gives
ERROR: MethodError: no method matching h(::ComponentMatrix{Float64, Matrix{Float64}, Tuple{Axis{...}, FlatAxis}})
Closest candidates are:
  h() at REPL[2]:1
Stacktrace:
 [1] top-level scope
   @ REPL[3]:1

instead of
ERROR: MethodError: no method matching h(::ComponentMatrix{Float64, Matrix{Float64}, Tuple{Axis{(first = 1, second = 2, third = 3, fourth = 4)}, FlatAxis}})
Closest candidates are:
  h() at REPL[2]:1
Stacktrace:
 [1] top-level scope
   @ REPL[3]:1

Relevant discourse threads: [1], [2]

Codecov Report

Merging #172 (a94945b) into master (cbb24ef) will decrease coverage by 0.89%.
The diff coverage is 14.28%.

@@            Coverage Diff             @@
##           master     #172      +/-   ##
==========================================
- Coverage   73.49%   72.59%   -0.90%
==========================================
  Files          20       20
  Lines         679      686       +7
==========================================
- Hits          499      498       -1
- Misses        180      188       +8

Impacted Files
Coverage Δ

src/show.jl
1.69% <14.28%> (-2.16%)
:arrow_down:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Constantly have to rebuild node-sass

Hi all, I'm having difficulties working with node-sass. I'm using it via the sass-loader in Webpack 2. Every other day when running webpack to compile my app. I'm getting this error below.
ERROR in /phoenix-wallet/~/css-loader!/phoenix-wallet/~/resolve-url-loader!/Users/e063428/Dev/Mastercard/phoenix-wallet/~/sass-loader/lib/loader.js?{"sourceMap":true}!./app/variants/default/styles/style.scss
Module build failed: Error: ENOENT: no such file or directory, scandir '/Users/e063428/Dev/Mastercard/phoenix-wallet/node_modules/node-sass/vendor'
    at Error (native)

The only thing that solves this error is running npm rebuild node-sass this phenomenon is happening on my machine as well as many of my coworkers. All of us have slightly different node environments as well although we're all using yarn as our package manager.

Yarn version (0.20.3):
Node version (6.10.0):
Node Process::

 http_parser: '2.7.0',
  node: '6.10.0',
  v8: '5.1.281.93',
  uv: '1.9.1',
  zlib: '1.2.8',
  ares: '1.10.1-DEV',
  icu: '58.2',
  modules: '48',
  openssl: '1.0.2k' }

Node Platform (darwin):
Node architecture (x64):
node-sass version:

node-sass	4.5.0	(Wrapper)	[JavaScript]
libsass  	3.5.0.beta.2	(Sass Compiler)	[C/C++]

npm node-sass versions (4.5.0):

There are a lot of known issue with yarn, as a result we cannot officially support it. Please try using to npm to see if the issue persists. If it does not please open an issue with yarn.

Same problem. My solution is just to run npm rebuild node-sass as a post-install script. So annoying, especially when building on CI.

@skylarmb are you also using yarn? If so please try npm.

@xzyfer yes we use yarn. We have no plan to switch back to npm until the day it uses a lockfile like yarn does. For now just running npm rebuild node-sass after yarn install will have to do.

@skylarmb I understand. I'm simply asking if you can confirm the problem doesn't exist with npm so we can confirm it's a yarn issue.

i have this issue with npm and node 7.4.0

^ to follow up on that my issue was not with npm. We were using a CI build process that ran npm install --ignore-scripts which (obviously) ignores node-sass' postinstall script to fetch bindings. We didn't see the issue initially (likely) because our CI was caching the binding.
Takeaway, don't ignore the scripts :)

Also having this issue, quite curious as to why this is the only package that I have this issue with when using yarn.

not sure how yarn manages install scripts, but it probably isn't a coincidence that there is a postinstall script dependency on this package.

At the risk of saying this too soon, I think #1185 fixes this (in release 4.5.1). I was using an older version, but since upgrading this hasn't cropped up. Not that I've had extensive time to test it as that release came out 13 hours ago :)

Every time I add/remove a package with Yarn, then I have to run npm rebuild node-sass again. Very annoyed.

Closing since the general yarn issues are tracked in #1804

I frequently have this issue, and I don't use yarn, therefore I would suggest that the ticket is closed prematurely and may not be yarn specific.

`Error: Missing binding /Library/WebServer/Documents/hod/pttg-sprint/node_modules/node-sass/vendor/darwin-x64-51/binding.node
Node Sass could not find a binding for your current environment: OS X 64-bit with Node.js 7.x
Found bindings for the following environments:

OS X 64-bit with Node.js 4.x

This usually happens because your environment has changed since running npm install.
Run npm rebuild node-sass to build the binding for your current environment.
at module.exports (/Library/WebServer/Documents/hod/pttg-sprint/node_modules/node-sass/lib/binding.js:15:13)
at Object. (/Library/WebServer/Documents/hod/pttg-sprint/node_modules/node-sass/lib/index.js:14:35)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object. (/Library/WebServer/Documents/hod/pttg-sprint/node_modules/gulp-sass/index.js:187:21)`

I think the error is self explanatory. You have both node 4 and 7
installed, and you're switching between the two. You need to run rebuild to
fetch the binary when you switch node versions. If you remove your node
modules you'll also need to rebuild to fetch the binary.
On 4 May 2017 12:17 pm, "Stuart Craigen"<EMAIL_ADDRESS>wrote:

`Error: Missing binding /Library/WebServer/Documents/
hod/pttg-sprint/node_modules/node-sass/vendor/darwin-x64-51/binding.node
Node Sass could not find a binding for your current environment: OS X
64-bit with Node.js 7.x
Found bindings for the following environments:

OS X 64-bit with Node.js 4.x

This usually happens because your environment has changed since running npm
install.
Run npm rebuild node-sass to build the binding for your current
environment.
at module.exports (/Library/WebServer/Documents/
hod/pttg-sprint/node_modules/node-sass/lib/binding.js:15:13)
at Object. (/Library/WebServer/Documents/hod/pttg-sprint/node_modules/
node-sass/lib/index.js:14:35)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object. (/Library/WebServer/Documents/hod/pttg-sprint/node_modules/
gulp-sass/index.js:187:21)`
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/sass/node-sass/issues/1918#issuecomment-299146636,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAjZWBpU8gd3gvjxsrzulAhhNMgwsLnYks5r2aWxgaJpZM4MUck-
.

@xzyfer thanks, but I don't switch between node versions, I'm always in node 7.x when I have to rebuild node-sass and it's never very long before it complains of the same issue again. Is there something different about this module compared to with others? This is the only npm module that asks to be rebuilt.

Yes node-sass is different to most packages. In order to be fast it is a
native add-on, which means it's mostly c++ with a little bit of JavaScript.
Because it's c++ it need to be compiled against a specific node version.
This is why you need to rebuild when you change node versions.
If you are seeing that error message you are definitely changing node
versions. How/why the version is changing might not be clear. This often
happens with IDEs or editors that have some node extension installed which
is bundled with its own node runtime. This is common in visual studio for
instance.
On 4 May 2017 12:47 pm, "Stuart Craigen"<EMAIL_ADDRESS>wrote:

@xzyfer https://github.com/xzyfer thanks, but I don't switch between
node versions, I'm always in node 7.x when I have to rebuild node-sass and
it's never very long before it complains of the same issue again. Is there
something different about this module compared to with others? This is the
only npm module that asks to be rebuilt.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/sass/node-sass/issues/1918#issuecomment-299151957,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAjZWHL1dODU406owVdNWuaD_Fs95Kgqks5r2ay5gaJpZM4MUck-
.

@hod-shcraigen as @xzyfer said, it is clear what is happening.
Can you provide the output of the troubleshooting commands as the OP did?
Do you have nvm installed?
If nothing explains, just scan you whole filesystem with something like "find / -name node -print -exec {} -v" (haven't tested) and see where your different node engines come from.

I'm working with Visual Studio 2017 and the only way to fix that error was to change the "External Web Tools" config:

In this way you're forcing VS to use the Node present in your env path and not the VS's one.

Building with CI this is frustrating compiling for every deployment. Is it possible to install and compile it when I build my docker image? Is it possible to install node-sass globally and compile it, so my deployments don't require a build from scratch?

Looks like you've mounted node_modules from OSX into your container. You
need to run a clean npm install inside the container.
On 21 Aug. 2017 11:46 pm, "ajv"<EMAIL_ADDRESS>wrote:

Node-sass also requires a rebuild when running npm install in an Alpine
Node-8.4+ container, which is weird, since it should have its environment
binding according to the OS it was downloaded in, no?
Using node-sass v4.5.3
Module build failed: Error: Missing binding /usr/src/app/node_modules/node-sass/vendor/linux_musl-x64-57/binding.node
web_1  | Node Sass could not find a binding for your current environment: Linux/musl 64-bit with Node.js 8.x
web_1  |
web_1  | Found bindings for the following environments:
web_1  |   - OS X 64-bit with Node.js 8.x
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/sass/node-sass/issues/1918#issuecomment-323747607,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAjZWDFgFSZz_X4d0BlJH0hZOctK87Xtks5saYoggaJpZM4MUck-
.

Hey, i have the same problem. I wondered: as we all know our target environments (linux docker container, for me), i'd like to get it directly, then copy it into /node_modules folder. That way, when we run our images, we could do it only once, then it'd get cached, then, we move on.

same issue with npm here.

Same question that damienshiells. Constantly have to rebuild it when building my docker image.

I can confirm this annoying issue both on npm and yarn. Each time i install one tiny npm module, it has to rebuild node-sass and takes a minute or two for that. i don't have nvm, constantly on node 8.

Same problem on both a CI environment (docker) and OSX using both node 6 and node 8 and both yarn and npm. Appears to be universal.

I wonder if this issue should be re-opened with the amount of people that are experiencing it.  I also ended up here after I attempted to upgrade from node v7.10.1 to node v8.6.0 with npm v5.3.0.  Now on every npm install (after clearing the node modules folder) it seems libsass has to get rebuilt.  Strange how it only seems to be an issue after the upgrade.
`
npm install

<EMAIL_ADDRESS>install /Users/momo/Documents/Apps/front-end/JanusReboot/janus-ui/node_modules/fsevents
node install

[fsevents] Success: "/Users/momo/Documents/Apps/front-end/JanusReboot/janus-ui/node_modules/fsevents/lib/binding/Release/node-v57-darwin-x64/fse.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile

<EMAIL_ADDRESS>install /Users/momo/Documents/Apps/front-end/JanusReboot/janus-ui/node_modules/node-sass
node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v3.13.1/darwin-x64-57_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v3.13.1/darwin-x64-57_binding.node":
HTTP error 404 Not Found
Hint: If github.com is not accessible in your location
try setting a proxy via HTTP_PROXY, e.g.
  export HTTP_PROXY=http://example.com:1234

or configure npm proxy via
  npm config set proxy http://example.com:8080

<EMAIL_ADDRESS>install /Users/momo/Documents/Apps/front-end/JanusReboot/janus-ui/node_modules/phantomjs-prebuilt
node install.js

PhantomJS not found on PATH
Download already available at /var/folders/n1/n8pn2dfn2t37x5jqt4gfzf7m0000gn/T/phantomjs/phantomjs-2.1.1-macosx.zip
Verified checksum of previously downloaded file
Extracting zip contents
Removing /Users/momo/Documents/Apps/front-end/JanusReboot/janus-ui/node_modules/phantomjs-prebuilt/lib/phantom
Copying extracted folder /var/folders/n1/n8pn2dfn2t37x5jqt4gfzf7m0000gn/T/phantomjs/phantomjs-2.1.1-macosx.zip-extract-1507293146791/phantomjs-2.1.1-macosx -> /Users/momo/Documents/Apps/front-end/JanusReboot/janus-ui/node_modules/phantomjs-prebuilt/lib/phantom
Writing location.js file
Done. Phantomjs binary available at /Users/momo/Documents/Apps/front-end/JanusReboot/janus-ui/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs

<EMAIL_ADDRESS>postinstall /Users/momo/Documents/Apps/front-end/JanusReboot/janus-ui/node_modules/node-sass
node scripts/build.js

Building: /Users/momo/.nvm/versions/node/v8.6.0/bin/node /Users/momo/Documents/Apps/front-end/JanusReboot/janus-ui/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ '/Users/momo/.nvm/versions/node/v8.6.0/bin/node',
gyp verb cli   '/Users/momo/Documents/Apps/front-end/JanusReboot/janus-ui/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli   'rebuild',
`
Cut off output after gyp verb cli   'rebuild' as it just continues to build libsass.  Did note https://github.com/sass/node-sass/releases/download/v3.13.1/darwin-x64-57_binding.node doesn't lead to anything, so not sure if that may be an issue.

I have the same issue. Any updates? I am using npm.

My team uses volumes to serve code from macOS into an Ubuntu-based Docker environment. To make sure we have the correct node-sass binary, we run this script as a pre-build hook:
var exec = require('child_process').exec;

function verify() {
  const os = process.platform.toLowerCase();
  console.log(`[verify-sass] Your operating system: ${os}`);
  return new Promise((resolve, reject) => {
    exec(`test -d ./node_modules/node-sass/vendor/${os}*`).on('exit', resolve);
  });
}

function rebuild() {
  return new Promise((resolve, reject) => {
    exec('npm rebuild node-sass --force').on('exit', resolve);
  });
}

console.log('[verify-sass] Verifying correct node-sass binary exists.');
verify().then((exitCode) => {
  if (exitCode) {
    console.log('[verify-sass] Binary missing for this OS!');
    console.log('[verify-sass] Running \'npm rebuild node-sass --force\'.');
    console.log('[verify-sass] This may take a moment...');
    rebuild().then(() => {
      console.log('[verify-sass] Finished!');
    });
  } else {
    console.log('[verify-sass] Verified!');
  }
});

Hope it helps!

Having the same issue, any updates?
Running npm rebuild node-sass prior to yarn works fine.

Same problem here also.

Unsubscribing from this. Clearly there's either technical challenges or lack of time and resources to fix it. I guess it can be fixed by rebuilding sass


amp-carousel version 0.2 usage

Hi.
How i can specify 0.2 version for amp-carousel tag?

Hello @arkhamvm
Right now there is no way to change script version
But in the next release this will be possible, I'm working to publish next version in two days


added Eazydiner Scraper

Title and Issue number

The eazydiner scraper will retrieve various details from the eazydiner website, including restaurants name, location, rating, cuisine and prices in JSON format.
Close #3983

Checklist:

[X] I have mentioned the issue number in my Pull Request.
[X] I have commented my code, particularly in hard-to-understand areas
[X] I have created a helpful and easy to understand README.md

@MohitGupta121 @TusharKesarwani Kindly review this PR.


Feature/helper scripts

Hello,
I've been playing with this project for a few month now and I wanted to share some scripts that I've made to fasten the deployment of the stack and stack-set.
I'm aware that it has already been done with the Jenkinsfile or Ansible, but using simple bash scripts makes the project more accessible in my opinion. I hope it will help others easily start playing with those lambdas in their AWS environment and maybe start contributing. This PR also includes a simple README.md that shall need some more explanations.

Thanks @jcosteatcyberark for the hard work and time invested for making those scripts. Please allow us some time to review!
@yogevh please take a look.

Hi, I'm canceling the PR as the features provided are now hosted on a separate repository.
Feel free to take a look at the repo and try out the scripts to deploy the lambda.


Add sourceCode facet for open lineage

Please describe the feature you'd like to see
The python transform should also expose its content with the sourceCode facet, similar to the sql facet. Example: link [Action item: Create an issue on astro-sdk]
Include the transformation python code that the transformations were running in the OpenLineage events so that they showed up in the Info tab
For demo purposes I hard-coded both of these in a custom openlineage-airflow fork like:
code = inspect.getsource(task.python_callable)
job_facet = {"sql": SqlJobFacet(query=code), "sourceCodeLocation": SourceCodeLocationJobFacet("git", "https://github.com/astronomer/astro-days-chicago/blob/9cca4e166d73106e903f3d9f32af334d7b5560a3/dags/airflow_ecosystem.py")}

^ the code would probably be cleaner as {"sourceCode": SourceCodeJobFacet("python", code)} I stuffed it in sql only due to the lack of: https://github.com/astronomer/astro/issues/2150 which is a temporary limitation
Describe the solution you'd like

Add source code facet for operators for open lineage integrations

Acceptance Criteria

[ ] Run all the operators on astro-cloud and Marquez and post screenshot of facets with sourceCode facet.
[ ] All checks and tests in the CI should pass
[ ] Unit tests (90% code coverage or more, once available)
[ ] Integration tests (if the feature relates to a new database or external service)
[ ] Example DAG
[ ] Docstrings in reStructuredText for each of  methods, classes, functions and module-level attributes (including Example DAG on how it should be used)
[ ] Exception handling in case of errors
[ ] Logging (are we exposing useful information to the user? e.g. source and destination)
[ ] Improve the documentation (README, Sphinx, and any other relevant)
[ ] How to use Guide for the feature (example)

@rajaths010494 can you please add the reason here for why currently in PR #1537 get_source_code only in DataframeOperator and BaseSQLDecoratedOperator?

Openlineage for SourceCodeJobFacet not visible on Marquez UI hhttps://github.com/https://github.com/OpenLineage/OpenLineage/issues/1478


enable npm caching in travis

Latest improvements:
MSFT employees can try out our new experience at OpenAPI Hub  - one location for using our validation tools and finding your workflow.

Contribution checklist:

[ ] I have reviewed the documentation for the workflow.
[ ] Validation tools were run on swagger spec(s) and have all been fixed in this PR.
[ ] The OpenAPI Hub was used for checking validation status and next steps.

ARM API Review Checklist

[ ] Service team MUST add the "WaitForARMFeedback" label if the management plane API changes fall into one of the below categories.
adding/removing APIs.
adding/removing properties.
adding/removing API-version.
adding a new service in Azure.

Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs.

[ ] If you are blocked on ARM review and want to get the PR merged urgently, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.
Please follow the link to find more details on API review process.

Automation for azure-sdk-for-go

Automation for azure-sdk-for-node

Automation for azure-sdk-for-js

Automation for azure-sdk-for-python

Automation for azure-sdk-for-java

Automation for azure-sdk-for-ruby

See https://docs.travis-ci.com/user/caching/#npm-cache

Can one of the admins verify this patch?


VideoListDemoActivity - Immediate notifyDataSetChanged

I have included a slight variation of the example code from VideoListDemoActivity in my app. In my case, VideoListFragment is initialised with some cached content, and simultaneously a request is made to update to the latest set of videos. This can come back relatively quickly, whilst the cached video thumbnails are still in some form of loading state (Usually "1) The view has not yet been created"). When the new data is returned, I call notifyDataSetChanged on the adapter. Sometimes this will cause an IllegalStateException:
java.lang.IllegalStateException: Not connected. Call connect() and wait for onConnected() to be called.
        at com.google.android.youtube.player.a.at.i(Unknown Source)
        at com.google.android.youtube.player.a.an.k(Unknown Source)
        at com.google.android.youtube.player.a.an.a(Unknown Source)
        at com.google.android.youtube.player.a.ao.<init>(Unknown Source)
        at com.google.android.youtube.player.a.f.a(Unknown Source)
        at com.google.android.youtube.player.s.a(Unknown Source)
        at com.google.android.youtube.player.a.at.g(Unknown Source)
        at com.google.android.youtube.player.a.ax.a(Unknown Source)
        at com.google.android.youtube.player.a.aw.a(Unknown Source)
        at com.google.android.youtube.player.a.av.handleMessage(Unknown Source)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:136)
        at android.app.ActivityThread.main(ActivityThread.java:5171)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:837)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:653)

I have managed to reproduce this consistently in my version. If I stop the notifyDataSetChanged, or even delay it by 0.5 seconds, there is no crash. Can you reproduce this too? Any suggestions what I should do in this case?
Thanks,
Jon.

Thanks this helped me a lot, introducing a simple check solved my issues

Could anyone please post a sample code for the fix or elaborate on it. Sadly, this discussion leads me nowhere. Thanks.

i got this error too, while using youtubeplayer API in recyclerView.
actually its all my fault that using object from holder in onInitializationSuccess but it must be using youTubeThumbnailView from attribute i got from onInitializationSuccess

holder.youTubeThumbnailView.initialize("AIzaSyA_lUmgrSW7QZr7ykaKzfKeNOJb6sJkjDg", new YouTubeThumbnailView.OnInitializedListener() {
            @Override
            public void onInitializationSuccess(final YouTubeThumbnailView youTubeThumbnailView,final YouTubeThumbnailLoader youTubeThumbnailLoader) {
//im using this before
//                holder.youTubeThumbnailView.setColorFilter(Color.rgb(123, 123, 123), android.graphics.PorterDuff.Mode.MULTIPLY);
//it must be like this
youTubeThumbnailView.setColorFilter(Color.rgb(123, 123, 123), android.graphics.PorterDuff.Mode.MULTIPLY);
}

https://stackoverflow.com/questions/35289106/java-lang-illegalstateexception-not-connected-call-connect-and-wait-for-onco/47693216#47693216
I have the same problem
"YouTubeThumbnailView Not connected. Call connect() and wait for onConnected() to be called"
in RecyclerView.Adapter by scrolling quickly and there are 3 youtube thumbnails in the recylerView.
In the adapter I put like this:
a field: private boolean readyForLoadingYoutubeThumbnail = true;
and at onBindViewHolder
/**
 * https://issuetracker.google.com/issues/35176819#c6
 * https://github.com/youtube/yt-android-player/issues/2#issuecomment-58913900
 * YouTubeThumbnailView Not connected. Call connect() and wait for onConnected() to be called
 */
Log.d(TAG, "readyForLoadingYoutubeThumbnail" + readyForLoadingYoutubeThumbnail);
final YouTubeInitializationResult result = YouTubeApiServiceUtil.isYouTubeApiServiceAvailable(activity);
if (readyForLoadingYoutubeThumbnail) {
    Log.d(TAG, "initializing for youtube thumbnail view...");
    readyForLoadingYoutubeThumbnail = false;
    holder.youTubeThumbnailView.initialize("AIzaSyA_lUmgrSW7QZr7ykaKzfKeNOJb6sJkjDg", new YouTubeThumbnailView.OnInitializedListener() {
        @Override
        public void onInitializationSuccess(final YouTubeThumbnailView youTubeThumbnailView, final YouTubeThumbnailLoader youTubeThumbnailLoader) {

            youTubeThumbnailLoader.setVideo(videoId);
            youTubeThumbnailLoader.setOnThumbnailLoadedListener(new YouTubeThumbnailLoader.OnThumbnailLoadedListener(){

                @Override
                public void onThumbnailLoaded(YouTubeThumbnailView childYouTubeThumbnailView, String s) {
                    childYouTubeThumbnailView.setVisibility(View.VISIBLE);
                    holder.relativeLayoutOverYouTubeThumbnailView.setVisibility(View.VISIBLE);
                    youTubeThumbnailLoader.release(); // spy ga memory lick
                }

                @Override
                public void onThumbnailError(YouTubeThumbnailView youTubeThumbnailView, YouTubeThumbnailLoader.ErrorReason errorReason) {
                    youTubeThumbnailLoader.release(); // spy ga memory lick
                }
            });
            youTubeThumbnailView.setColorFilter(Color.rgb(123, 123, 123), android.graphics.PorterDuff.Mode.MULTIPLY);

            readyForLoadingYoutubeThumbnail = true;
        }

        @Override
        public void onInitializationFailure(YouTubeThumbnailView youTubeThumbnailView, YouTubeInitializationResult youTubeInitializationResult) {
            //do nohing.. ada error, tambahin method ini jalan, error-nya lupa...
            readyForLoadingYoutubeThumbnail = true;
        }
    });
}

It is works for me...

@parasjain1 ... i agreed with you...

Sadly, this discussion leads me nowhere

@rudiw wow great solution it worked for me !!

When I use this solution, the initialize method is called for particular positions only. For example, I have three items per page, when I load that in the recycler view, the initialize method is called only for the 0 position. After pagination, another 3 items received, in that the initialize method is called only for 4 and 5 positions. The initialize method is not called for 1,2 and 3 positions. So, please suggest a solution that works in this scenario.

https://stackoverflow.com/questions/35289106/java-lang-illegalstateexception-not-connected-call-connect-and-wait-for-onco/47693216#47693216
I have the same problem
"YouTubeThumbnailView Not connected. Call connect() and wait for onConnected() to be called"
in RecyclerView.Adapter by scrolling quickly and there are 3 youtube thumbnails in the recylerView.
In the adapter I put like this:
a field: private boolean readyForLoadingYoutubeThumbnail = true;
and at onBindViewHolder
/**
 * https://issuetracker.google.com/issues/35176819#c6
 * https://github.com/youtube/yt-android-player/issues/2#issuecomment-58913900
 * YouTubeThumbnailView Not connected. Call connect() and wait for onConnected() to be called
 */
Log.d(TAG, "readyForLoadingYoutubeThumbnail" + readyForLoadingYoutubeThumbnail);
final YouTubeInitializationResult result = YouTubeApiServiceUtil.isYouTubeApiServiceAvailable(activity);
if (readyForLoadingYoutubeThumbnail) {
    Log.d(TAG, "initializing for youtube thumbnail view...");
    readyForLoadingYoutubeThumbnail = false;
    holder.youTubeThumbnailView.initialize("aaaaaaaaaa", new YouTubeThumbnailView.OnInitializedListener() {
        @Override
        public void onInitializationSuccess(final YouTubeThumbnailView youTubeThumbnailView, final YouTubeThumbnailLoader youTubeThumbnailLoader) {

            youTubeThumbnailLoader.setVideo(videoId);
            youTubeThumbnailLoader.setOnThumbnailLoadedListener(new YouTubeThumbnailLoader.OnThumbnailLoadedListener(){

                @Override
                public void onThumbnailLoaded(YouTubeThumbnailView childYouTubeThumbnailView, String s) {
                    childYouTubeThumbnailView.setVisibility(View.VISIBLE);
                    holder.relativeLayoutOverYouTubeThumbnailView.setVisibility(View.VISIBLE);
                    youTubeThumbnailLoader.release(); // spy ga memory lick
                }

                @Override
                public void onThumbnailError(YouTubeThumbnailView youTubeThumbnailView, YouTubeThumbnailLoader.ErrorReason errorReason) {
                    youTubeThumbnailLoader.release(); // spy ga memory lick
                }
            });
            youTubeThumbnailView.setColorFilter(Color.rgb(123, 123, 123), android.graphics.PorterDuff.Mode.MULTIPLY);

            readyForLoadingYoutubeThumbnail = true;
        }

        @Override
        public void onInitializationFailure(YouTubeThumbnailView youTubeThumbnailView, YouTubeInitializationResult youTubeInitializationResult) {
            //do nohing.. ada error, tambahin method ini jalan, error-nya lupa...
            readyForLoadingYoutubeThumbnail = true;
        }
    });
}

It is works for me...

Perhaps private boolean readyForLoadingYoutubeThumbnail = true;
should be added in Viewholder not in adapter.  This way next ViewHolder thumbnail initialization won't stop until last viewholder has been initialized.


Query Builder not quoting table names correctly (?)

The code $rows = (new Query())->select('[[Item Name]]')->from('{{Foo Bar}}')->all(); correctly quotes the column name, but not the table name. The resulting query is SELECT "Item Name" FROM {{Foo "Bar}}", instead of the expected SELECT "Item Name" FROM "Foo Bar".
Manually quoting the table name works; $rows = (new Query())->select('[[Item Name]]')->from('"Foo Bar"')->all(); yields SELECT "Item Name" FROM "Foo Bar".
I take it this is not intentional?

expired. Please notify if somebody encounters this again.


Possible to wrap datepicker around an icon of our choice

Hello Mr Kassel, is it possible to insert an element inside the datepicker tab and use that? I can't change the styling to fit my needs. Thank you very much.

Currently there isn't any slot elements in the datepicker.
But feel free to submit a PR is this is something you find useful.

Can you send me a link that shows how to create a slot i'll happily work on it.

https://vuejs.org/v2/guide/components.html#Content-Distribution-with-Slots

At the risk of appearing like a noob (which i am) do you also have a link that shows how to load and recompile your project? I always wanted to try but never knew where to look. I will see how you built it and will modify it. The PR will also require your help as i've never done it as well.

Hello, i never got a response, i would appreciate your help.

You can run npm run dev to spin up a local express server that watches you changes at localhost:8080
It's based on the vue cli webpack template - you can find more info here: https://github.com/vuejs-templates/webpack

Ok i will try that, but when i go inside that folder and run npm install i get a ton of error, so i just run a dev server inside? And how do i export it to use it in my project after that?


query position of failed Run()

Would be great to know where in the query the runtime fails, such as during a type problem.  example:
$ echo '"foo"' | ~/go/bin/gojq '(1==1).foo'
gojq: expected an object but got: boolean (true)

while this example is trivial, with a very large query it can be very ambiguous.

I understand the request, but this is difficult to support in this project. Currently gojq syntax tree does not have the position in the query string and it is impossible for the compiler to tell the position. Even if it does, the compiler drops various information of the syntax tree, such as variable names. Supporting the position on failure case is expected to introduce considerable overhead for normal use cases as well. This feature is unlikely to be implemented, so sorry but closing.


Fix runtime undefined symbol error in multiplexer plugin.

Add a smoke test to verify the plugin loads.

[approve ci freebsd]

[approve ci freebsd]

[approve ci autest]

[approve ci freebsd]

[approve ci linux]

[approve ci autest]

I added some other fixes based on testing.


Add support for chrono crate.

Use NaiveDateTime and always assume UTC timezone. If users want a local time zone they can leverage the functionality of chrono to create a timezone aware DateTime and do the necessary conversions.
see: chrono crate

The more I research this, I notice how unstable chrono is. This is a low priority for now.


Unable to load images using Html2Image - Suddenly stopped working

Hi!
First of all - Thanks for this amazing package!
I have the following python code:
from html2image import Html2Image
def htmlToImage(str):
x=str.split('&')
hti = Html2Image(custom_flags=['--virtual-time-budget=70000', '--hide-scrollbars'])
hti.output_path = x[0]
css = ""
hti.screenshot(html_file=x[1],css_str=css,save_as=x[2],size=(int(x[3]),int(x[4])))
The package is unable to load images inside the HTML. The images render with their 'alt text'. Example:

I'm not sure why this might be happening?
I know there might be a very simple solution to this, but I have spent way too many hours resolving this! Any help here would be highly appreciated.

Hi, could you take a look at my comment here and tell me if that helps? Basically, using absolute paths for the images should do the trick.


Add support for running A/B test on performance optimizations

Task/Issue URL: https://app.asana.com/0/0/1206427492016652/f
Description
Read optimizeTrackerEvaluation and add its status to page load pixel
Steps to test this PR
Feature 1

[ ]
[ ]

UI changes
No UI changes

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

develop

#4104

#4111   👈

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @CrisBarreiro and the rest of your teammates on  Graphite


analyzeText default parameter language="de" prevents automatic language detection

Describe the bug
When calling analyze_Text(..) without the named parameter "language", I expect that the automatic language detection
is being activated. Instead, a default value "de" is set, which assigns german as the language
To Reproduce
Steps to reproduce the behavior:

Choose any pipeline that has a LanguageDetection annotator
Call analyzeText on an english text without the language parameter being set
Check the language in DocumentAnnotation

Example:
englishText="""
This text is definitely written in english and should be recognized as such.
"""
annotationTypes = ["de.averbis.types.health.DocumentAnnotation"]

annotations = pipeline.analyse_text(englishText.encode('utf-8'),annotation_types=annotationTypes)
for annot in annotations:
    if "DocumentAnnotation" in annot["type"]:
        print(annot["language"])

Expected behavior
If no language parameter is set, the api parameter should be left out (and not set to a default parameter).
Please complete the following information:

Versions averbis-python-api 0.1.1, HD 5.36.1

In particular for small texts, the language detection might be off which could be a downer for people trying out the API with some trivial test texts.
How about making the language parameter mandatory and allowing to pass "auto" (or some AUTO constant). We could also  consider having a Languages class/enum/constants with e.g. German, English and Auto so people do not have to wonder which values are acceptable as languages.

The default values for the language depends on the use case and should be defined in the pipeline, as they are now. Providing a default value on client level overrides the defined functionality of a pipeline. The functionality of the python api should be consistent to the usage of the other api calls, e.g., swagger. It should be possible to provide the language of the document (if it is known), but there should be no defautl value on client side.
@TorstenK91 do you want to provide a patch and open a pull request?

Yes, I'd like to do the fix myself.
Just to be clear, If we want to mimic the swagger behavior, we neither want the language to be a mandatory parameter (arg), nor do we want to send a default value as the request parameter. So I would propose that we keep it as a named argument (kwarg) in the function, with a default value "auto" (or None), which leads to the request parameter being omitted in the request call.
Regarding a list of accepted values (Languages class/enum/constants), we would need to deal with the case where a pipeline accepts more / different / less languages. So the list (in theory) depends on the pipeline, right? So unless we can retrieve the list from the pipeline, we shouldn't force a fixed list of languages (or auto)?

Yes, no argument given =>  not langauge set
Yes. The set of valid languages for the language detection should be configured in the pipeline. I would not provide any functionality on client side at this point.

The reason I suggested to make it an arg (not kwarg) parameter was to raise awareness of the existence of the language parameter to reduce the risk that people just get bad results because they do not know that they can set a language.
The reason for the Python side language list is similar - to facilitate them selecting a language if they care without having to worry if they need to specify "en" or "English" or "en-US" or "eng" or whatever.

I am re-opening the issue, because we forgot to remove the default language = "de" in the _analyse_text_xmi endpoint (https://github.com/averbis/averbis-python-api/blob/main/averbis/core/_rest_client.py#L1284). I will create a merge request - it is literally just a line of code that needs to be changed.

Ready to be reviewed (https://github.com/averbis/averbis-python-api/pull/76)


Running Homebridge on Bootup (systemd) broken

Expected Behavior
Excepting Homebridge to load on bootup, it worked before when manually running it.
Current Behavior
Currently no response from the homebridge, it worked the first time from bootup but then never again.
Steps to Reproduce (for bugs)
N/A, just from bootup.
Versions

Homebridge: `0.4.33'
Node:       v8.9.3
OS:        Linux raspberrypi 4.9.59-v7+ #1047 SMP Sun Oct 29 12:19:23 GMT 2017 armv7l GNU/Linux

Configuration
`{
"bridge": {
"name": "Homebridge",
"username": "XXXXX",
"port": XXXX,
"pin": "XXXX"
},
"description": "This is an example configuration file with one fake accessory and one fake platform. You can use this as a template for creating your own configuration file containing devices you actually own.",

"platforms": [
{
"platform": "HarmonyHub",
"name": "Harmony Hub"
}
]
}``json

### Homebridge Log / Command Output

pi@raspberrypi:~ $ DEBUG=* homebridge -D
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=node
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister
[2017-12-30 16:50:58] Loaded plugin: homebridge-harmonyhub
[2017-12-30 16:50:59] Registering platform 'homebridge-harmonyhub.HarmonyHub'
[2017-12-30 16:50:59] ---
[2017-12-30 16:50:59] Loaded config.json with 0 accessories and 1 platforms.
[2017-12-30 16:50:59] ---
[2017-12-30 16:50:59] Loading 1 platforms...
[2017-12-30 16:50:59] [Harmony Hub] Initializing HarmonyHub platform...
harmonyhubjs:discover:explorer Explorer(61991) +0ms
harmonyhubjs:discover:ping Ping(61991) +3ms
harmonyhubjs:discover:explorer start() +6ms
harmonyhubjs:discover:responsecollector ResponseCollector(61991) +1ms
harmonyhubjs:discover:responsecollector start() +5ms
harmonyhubjs:discover:ping start() +19ms
[2017-12-30 16:51:00] [Harmony Hub] Plugin - Configure Accessory: Harmony Hub
Setup Payload:
X-HM://0023ISYWYDEFC
Scan this code with your HomeKit app on your iOS device to pair with Homebridge:
[2017-12-30 16:51:00] [Harmony Hub] Finalizing Plugin Launch
events.js:183
throw er; // Unhandled 'error' event
^
Error: bind EADDRINUSE <IP_ADDRESS>:5224
at Object._errnoException (util.js:1024:11)
at _exceptionWithHostPort (util.js:1046:20)
at _handle.lookup (dgram.js:266:18)
at _combinedTickCallback (internal/process/next_tick.js:141:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
at Function.Module.runMain (module.js:678:11)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:608:3

Thank you in advance for your help, this is after setting up Homebridge on bootup with systemd!

"""
pi@raspberrypi:~ $ journalctl -u homebridge
-- Logs begin at Thu 2016-11-03 17:16:44 UTC, end at Sat 2017-12-30 17:10:19 UTC
Dec 30 16:48:56 raspberrypi systemd[1]: Started Node.js HomeKit Server.
Dec 30 16:49:12 raspberrypi homebridge[394]: *** WARNING *** The program 'node'
Dec 30 16:49:12 raspberrypi homebridge[394]: *** WARNING *** Please fix your app
Dec 30 16:49:12 raspberrypi homebridge[394]: *** WARNING *** For more informatio
Dec 30 16:49:12 raspberrypi homebridge[394]: *** WARNING *** The program 'node'
Dec 30 16:49:12 raspberrypi homebridge[394]: *** WARNING *** Please fix your app
Dec 30 16:49:12 raspberrypi homebridge[394]: *** WARNING *** For more informatio
Dec 30 16:49:12 raspberrypi node[394]: *** WARNING *** The program 'node' uses t
Dec 30 16:49:12 raspberrypi node[394]: *** WARNING *** Please fix your applicati
Dec 30 16:49:12 raspberrypi node[394]: *** WARNING *** For more information see
Dec 30 16:49:12 raspberrypi node[394]: *** WARNING *** The program 'node' called
Dec 30 16:49:12 raspberrypi node[394]: *** WARNING *** Please fix your applicati
Dec 30 16:49:12 raspberrypi node[394]: *** WARNING *** For more information see
Dec 30 16:49:56 raspberrypi homebridge[394]: ┌──────────────────────────────────
Dec 30 16:49:56 raspberrypi homebridge[394]: │                   npm update chec
Dec 30 16:49:56 raspberrypi homebridge[394]: │             Try running with sudo
Dec 30 16:49:56 raspberrypi homebridge[394]: │             to the local update c
Dec 30 16:49:56 raspberrypi homebridge[394]: │ sudo chown -R $USER:$(id -gn $USE
Dec 30 16:49:56 raspberrypi homebridge[394]: └──────────────────────────────────
Dec 30 16:50:08 raspberrypi homebridge[394]: [2017-12-30 16:50:08] Loaded plugin
Dec 30 16:50:24 raspberrypi homebridge[394]: [2017-12-30 16:50:24] Registering p
Dec 30 16:50:24 raspberrypi homebridge[394]: [2017-12-30 16:50:24] ---
"""
Please note this is the output from this command


sample: samples/net/sockets/echo_server, board: native_sim Build failure

Describe the bug

Follow the Networking with native_sim board tutorial, Failed to build echo_server on the native_sim board
To Reproduce

west build -p always -b native_sim zephyr/samples/net/sockets/echo_server
Expected behavior

build success
Impact

Logs and console output

-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /home/xxx/zephyr/samples/net/sockets/echo_server
-- CMake version: 3.29.6
-- Found Python3: /home/xxx/.venv/bin/python3 (found suitable version "3.8.10", minimum required is "3.8") found components: Interpreter
-- Cache files will be written to: /home/xxx/.cache/zephyr
-- Zephyr version: 3.7.99 (/home/xxx/zephyr)
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: native_sim, qualifiers: native
-- ZEPHYR_TOOLCHAIN_VARIANT not set, trying to locate Zephyr SDK
-- Found host-tools: zephyr 0.16.8 (/opt/zephyr-sdk-0.16.8)
-- Found toolchain: host (gcc/ld)
-- Found Dtc: /opt/zephyr-sdk-0.16.8/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6")
-- Found BOARD.dts: /home/xxx/zephyr/boards/native/native_sim/native_sim.dts
-- Generated zephyr.dts: /home/xxx/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /home/xxx/build/zephyr/include/generated/zephyr/devicetree_generated.h
-- Including generated dts.cmake file: /home/xxx/build/zephyr/dts.cmake
Parsing /home/xxx/zephyr/samples/net/sockets/echo_server/Kconfig
Loaded configuration '/home/xxx/zephyr/boards/native/native_sim/native_sim_defconfig'
Merged configuration '/home/xxx/zephyr/samples/net/sockets/echo_server/prj.conf'
Configuration saved to '/home/xxx/build/zephyr/.config'
Kconfig header saved to '/home/xxx/build/zephyr/include/generated/zephyr/autoconf.h'
-- Found GnuLd: /usr/bin/ld.bfd (found version "2.34")
-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/gcc
-- Setting build type to 'MinSizeRel' as none was specified.
-- Using ccache: /usr/bin/ccache
-- Looking for xtensa/config/core-isa.h
-- Looking for xtensa/config/core-isa.h - not found
-- Configuring done (25.2s)
-- Generating done (0.4s)
-- Build files have been written to: /home/xxx/build
-- west build: building application
[9/1202] Preparing syscall dependency handling
[125/1202] Generating include/generated/zephyr/version.h
-- Zephyr version: 3.7.99 (/home/xxx/zephyr), build: v3.7.0-3233-g4cc3134aa1c1
[595/1202] Building C object modules/picolibc/CMakeFiles/c.dir/newlib/libc/tinystdio/vfscanf.c.obj
FAILED: modules/picolibc/CMakeFiles/c.dir/newlib/libc/tinystdio/vfscanf.c.obj
ccache /usr/bin/ccache /usr/bin/gcc  -I/home/xxx/modules/lib/picolibc/newlib/libm/common -isystem /home/xxx/build/modules/picolibc/picolibc/include -Os -DNDEBUG -nostdlib -D_LIBC -fno-strict-aliasing -Os -imacros /home/xxx/build/zephyr/include/generated/zephyr/autoconf.h -fno-common -g -gdwarf-4 -fdiagnostics-color=always -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wdouble-promotion -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=/home/xxx/zephyr/samples/net/sockets/echo_server=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/xxx/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/home/xxx=WEST_TOPDIR -ffunction-sections -fdata-sections -m32 -msse2 -mfpmath=sse -fvisibility=hidden -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -include /home/xxx/zephyr/arch/posix/include/undef_system_defines.h -ffreestanding -fno-builtin -D_POSIX_THREADS -fno-stack-protector -Wextra -Werror=implicit-function-declaration -Werror=vla -Warray-bounds -Wold-style-definition -frounding-math -fsignaling-nans -MD -MT modules/picolibc/CMakeFiles/c.dir/newlib/libc/tinystdio/vfscanf.c.obj -MF modules/picolibc/CMakeFiles/c.dir/newlib/libc/tinystdio/vfscanf.c.obj.d -o modules/picolibc/CMakeFiles/c.dir/newlib/libc/tinystdio/vfscanf.c.obj -c /home/xxx/modules/lib/picolibc/newlib/libc/tinystdio/vfscanf.c
/home/xxx/modules/lib/picolibc/newlib/libc/tinystdio/vfscanf.c:578:17: error: expected ‘;’, ‘,’ or ‘)’ before ‘.’ token
578 | #define ap my_ap.ap
|                 ^
/home/xxx/modules/lib/picolibc/newlib/libc/tinystdio/vfscanf.c:860:58: note: in expansion of macro ‘ap’
860 | int __d_vfscanf (FILE * stream, const char *fmt, va_list ap) { return vfscanf(stream, fmt, ap); }
|                                                          ^~
[618/1202] Building C object modules/picolibc/CMakeFiles/c.dir/newlib/libm/common/s_infinity.c.obj
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /usr/bin/cmake --build /home/xxx/build
Environment (please complete the following information):

OS: (e.g. Linux, MacOS, Windows)
Toolchain (e.g Zephyr SDK, ...)
Commit SHA or Version used

Ubuntu20.04
zephyr-sdk-0.16.8
main
Additional context

Builds on main (4cc3134aa1c), have you updated using west update?

Builds on (4cc3134), have you updated using ?main``west update

Build on -- Zephyr version: 3.7.99 (/home/xxx/zephyr), build: v3.7.0-3233-g4cc3134aa1c1,
Yes, Has been updated using west update

cmake is mis-detecting compiler features in this configuration, which is done by compiling some short code snippets.
That's leading it down a backwards-compatibility code path which the bug represented in the error message.
It looks like the issue boils down to not using -fno-common while compiling that particular test. I've fixed the test (so that you'll get aliases working) and also fixed the backwards compatibility code path in case someone builds with a compiler that doesn't have the alias attribute.
See https://github.com/picolibc/picolibc/pull/841 -- once that is merged upstream, I'll work on getting it into the zephyr module.


Remove lodash dependecies

There is no needs for lodash.omit with ES6 and babel usage. lodash.omit adds at least 1KB in to final build.
Also, i reformat lifecycle hooks to be at top level in ReactPlaceholder class

Thank you @ochervak! It looks good, but let's wait for @FrancescoCioria's review

@ochervak thank you very much for this PR, but why so many changes?
can please revert any code-clean edit that is not strictly related to this PR?

@FrancescoCioria yep. no problem

@FrancescoCioria done. please, check it out!


Make redis optional

In my use case, I cannot have the baggage of an extra redis install installation and service in a command line tool. It would be great if this could be usable without redis (even if the perf goes down).
Alternatively a server, in-process redis could work out too such as  https://github.com/bmerry/birdisle-py

Hi, thanks for your interest in durable_rules. For a few months now, I have been working on the second version of the library, exact same language features, but will not require redis (an out of process cache such as redis will be optional to allow for fault tolerance and scale). I'm planning to release the first version by June. I'm using this branch to develop: https://github.com/jruizgit/rules/tree/v2 (it is not stable yet).


ERR_REQUIRE_ESM error when importing ky-universal in a server context

Describe the bug
I'm pretty sure this issue is caused by Vite, but the reproduction involves SvelteKit-specific details (hooks.ts), so I'm a little bit lost as to how to reproduce this issue outside of SvelteKit. If this issue is indeed off-topic here, I would appreciate guidance on how to check if this issue persists outside of SvelteKit in order to file a proper issue to Vite.
Certain libraries, namely, ky-universal, fail to be imported in the server context, such as the src/hooks module. This only happens in dev mode.
In the linked reproduction, the first request to http://localhost:3000 fails with an error message provided below in Logs. The subsequent requests proceed just fine.
Reproduction
https://github.com/illright/sveltekit-repro-ky-esm
Logs
Error [ERR_REQUIRE_ESM]: require() of ES Module /home/illright/work/sveltekit-repro-ky-esm/node_modules/.pnpm/ky-universal<EMAIL_ADDRESS>from<EMAIL_ADDRESS>not supported.
Instead change the require of index.js in<EMAIL_ADDRESS>to a dynamic import() which is available in all CommonJS modules.
    at nodeRequire (/home/illright/work/sveltekit-repro-ky-esm/node_modules/.pnpm/vite@2.6.14/node_modules/vite/dist/node/chunks/dep-e0fe87f8.js:66559:17)
    at ssrImport (/home/illright/work/sveltekit-repro-ky-esm/node_modules/.pnpm/vite@2.6.14/node_modules/vite/dist/node/chunks/dep-e0fe87f8.js:66501:20)
    at eval (//home/illright/work/sveltekit-repro-ky-esm/src/hooks.ts:3:37)
    at instantiateModule (/home/illright/work/sveltekit-repro-ky-esm/node_modules/.pnpm/vite@2.6.14/node_modules/vite/dist/node/chunks/dep-e0fe87f8.js:66544:15)

System Info
System:
    OS: Linux 5.10 Arch Linux
    CPU: (8) x64 Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz
    Memory: 1.17 GB / 3.76 GB
    Container: Yes
    Shell: 3.3.1 - /bin/fish
  Binaries:
    Node: 17.1.0 - /usr/sbin/node
    npm: 8.1.3 - /usr/sbin/npm
  npmPackages:
    @sveltejs/adapter-auto: next => 1.0.0-next.3
    @sveltejs/kit: next => 1.0.0-next.201
    svelte: ^3.44.0 => 3.44.2

Severity
serious, but I can work around it
Additional Information
Not directly related to the issue, but would like to draw attention to this nonetheless: ky-universal isn't meant to be used with projects that already ship fetch for Node, as is the case with SvelteKit. However, SvelteKit's polyfilling seems to fail in certain cases involving globalThis.Headers. Regular ky sometimes just cannot get the reference to this object.
Please excuse the relatively low quality of this issue's description, I'm just feeling very lost and frustrated at not understanding what's going on. I'm happy to follow up with more information and cooperate, but I will need some guidance from those who understand the internals.

I'm also facing the same issue with a recent library I created. You can see this issue for more info. I also have no idea of what's happening and would like to get some clarification if possible.

delete the lock file and try again. it works with Vite 2.7.1 released this morning


Status display not updated immediately

If the Enable state is changed by passing a message using topic: "enable" the status display is not updated till a process sample is received.

If an enable message is received then the disabled status should immediately disappear, however the output cannot change until a new PV sample is received.
If a disable message is received then the status display should change immediately and a message should be sent to set the power to the disabled value.

Fixed in v1.1.5


Language Go should not be selected by default in the SDK Readiness app

Since Go is optional at the moment, it shouldn't be one of the default languages for this dropdown in the prerequisites checks step:

Just want to make sure this is data plane SDK release app only.  Go is required for management plane.


MySQLi escapeLikeStringDirect()

Description
As @michalsn points out, some MySQL commands (e.g. "SHOW ____") don't support custom escape characters supplied via "ESCAPE x". Currently listTables() is the only framework function suffering from this limitation, but it causes listTables() with $constrainPrefix to fail to constrain correctly.
This PR defines a new platform-specific function escapeLikeStringDirect() that can be used for those rare instances when both "SHOW" and "LIKE" are retried in the same query. This new function applies the default escape character \ directly the the "LIKE" string for any wildcards. This also has the MySQLi driver's _listTables() function use this new method instead to the generic one designed for "SELECT" statements.
Refs:

https://github.com/codeigniter4/CodeIgniter4/issues/2210
https://github.com/codeigniter4/CodeIgniter4/pull/2211
https://github.com/codeigniter4/CodeIgniter4/pull/2212

Checklist:

[X] Securely signed commits
[X] Component(s) with PHPdocs
[ ] Unit testing, with >80% coverage
[ ] User guide updated
[X] Conforms to style guide

Someone tell me how those are valid Postgres strings:
1) CodeIgniter\Database\Live\EscapeTest::testEscape
586Failed asserting that two strings are equal.
587--- Expected
588+++ Actual
589@@ @@
590-'SELECT * FROM brands WHERE name = 'O\'Doules''
591+'SELECT * FROM brands WHERE name = 'O''Doules''
592
593/home/travis/build/codeigniter4/CodeIgniter4/tests/system/Database/Live/EscapeTest.php:31
594
5952) CodeIgniter\Database\Live\EscapeTest::testEscapeString
596Failed asserting that two strings are equal.
597--- Expected
598+++ Actual
599@@ @@
600-'SELECT * FROM brands WHERE name = 'O\'Doules''
601+'SELECT * FROM brands WHERE name = 'O''Doules''
602
603/home/travis/build/codeigniter4/CodeIgniter4/tests/system/Database/Live/EscapeTest.php:41

Looks like two diferent escaping expectations, one with ' and one with '' ro end up with a single quote inside a single-quoted string
Can't attest to their validity, but it looks to me like the search is for "O'Doules"

Surely that can't be right? How could Postrgres escape a character within a string wrapped in ' with another '? Maybe I need to do some Postrgres research...

I have seen that convention before, with other programming languages. I don't know anything about Postgres.

Yeah me neither! I thought I was adding some easy tests, but I suppose it was foolish to assume the same escape character across all drivers.

Escaping single quotes ' by doubling them '' is a standard way for PostgreSQL.
https://www.postgresql.org/docs/current/sql-syntax-lexical.html#SQL-SYNTAX-STRINGS

@michalsn Thanks for elucidating! I'm trying a version using each driver's escape char instead.

Finally got it! Someone please review - basically:

Added escapeLikeStringDirect() to handle MySQLi SHOW ... LIKE ... query escaping
Added EscapeTest.php for testing escapeLikeStringDirect() and a variety of other DB escape types

Looks fine to me, but I'm definitely not an expert on it. I'll take yours - and the tests - word for it.

I'm no expert but I feel a lot closer after 7 commits 😳
Put it on the list for 4.5 when we rewrite the Database layer that escape types should be differentiated better and implementations standardized better.

Oh, so now the database rewrite is an actual thing :)
I definitely think it's showing it's age and the fact that it's been updated and worked on for 10+ years. Part of me would really like to rewrite that at some point, but not looking forward to it either lol

Oh yes, most definitely! I'm creating a milestone and assigning only you, with a November deadline. Good luck!

Jokes aside I just looked at my PR history and 11 out of the last 15 were for the database layer, mostly all bug fixes.