问:
XML XPath Expressions not getting all data from Children
I have some XML that I am needing to turn into structured data in Python.  When I go to get the data from the XML document below I am not seeing any children printed out.  My problem is that I need to get each row for pumpOp returned while I am only getting 1 record returned with the code below.

There should be 3 records in the bottom of the XML file that get returned.  I need to know how to access each element of the XML below.

I believe this record is a sub-child but when I try to print the children nothing prints.  Code examples are appreciated.

Code I have tried (for reports in myroot.findall('.//{*}pumpOp'):   #<-- for some reason this only works with a wild card statement like here or with the full path: for reports in myroot.findall('.//{http://www.witsml.org/schemas/131}pumpOp')):

```<code>import xml.etree.ElementTree as ET

mytree = ET.parse('C:\\Users\\uname\\Documents\\RPA\\PGE_DOS_K_10H_WITSML\\OpsReport_7_28_2022.xml')
myroot = mytree.getroot()
print(myroot)

for child in myroot:                    # No Children are printed, why?
    print(child.tag, child.attrib)

reportsArray = []

# iterate over all the nodes
for reports in myroot.findall('.//{*}pumpOp'):   #<-- for some reason this only works with a wild card statement like here or with the full path: for reports in myroot.findall('.//{http://www.witsml.org/schemas/131}pumpOp')
    # access all elements in node
    for element in reports:
        ele_name = element.tag
        ele_value = reports.find(element.tag).text
        print(ele_name, ' : ', ele_value)

</code>```

XML Data:

```<code><?xml version="1.0" encoding="utf-8"?>
<opsReports xmlns="http://www.witsml.org/schemas/131" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.witsml.org/schemas/131  ../obj_opsReport.xsd" version="1.3.1.1">
  <documentInfo>
    <DocumentName>opsReport</DocumentName>
    <FileCreationInformation>
      <FileCreationDate>2022-08-31T16:56:36Z</FileCreationDate>
      <SoftwareName>MUDPRO+</SoftwareName>
      <FileCreator>DDye</FileCreator>
    </FileCreationInformation>
  </documentInfo>
  <opsReport uidWell="PGE_DOS_K_10H" uidWellbore="3_-_Prod._Vertical" uid="1">
    <nameWell>PGE DOS K 10H</nameWell>
    <nameWellbore>3_-_Prod._Vertical</nameWellbore>
    <name>1</name>
    <rig>Nabors 890</rig>
    <dTim>2022-07-29T01:00:00Z</dTim>
    <eTimSpud uom="d">72</eTimSpud>
    <mdReport uom="ft">2672.00</mdReport>
    <tvdReport uom="ft">2672.00</tvdReport>
    <distDrill uom="ft">2672.00</distDrill>
    <engineer>Mike Francis</engineer>
    <activity uid="act-1">
      <phase>3 - Prod. Vertical</phase>
      <operator>CHK</operator>
    </activity>
    <drillingParams uid="dp-1">
      <eTimOpBit uom="h">0</eTimOpBit>
      <mdHoleStop uom="ft">2672.00</mdHoleStop>
      <wtMud uom="lbm/galUS">12.10</wtMud>
    </drillingParams>
    <wbGeometry>
      <dTimReport>2022-07-29T01:00:00Z</dTimReport>
      <mdBottom uom="ft">2672.00</mdBottom>
      <wbGeometrySection uid="wbsection-1">
        <typeHoleCasing>casing</typeHoleCasing>
        <mdTop uom="ft">0.00</mdTop>
        <mdBottom uom="ft">2672.00</mdBottom>
        <idSection uom="in">8.921</idSection>
        <odSection uom="in">9.625</odSection>
      </wbGeometrySection>
      <wbGeometrySection uid="wbsection-12">
        <typeHoleCasing>open hole</typeHoleCasing>
        <idSection uom="in">8.750</idSection>
      </wbGeometrySection>
    </wbGeometry>
    <dayCost uid="dc-1">
      <costClass>mud</costClass>
      <costCode>mud product</costCode>
      <costItemDescription>daily mud product cost</costItemDescription>
      <costAmount currency="$">0.00</costAmount>
    </dayCost>
    <dayCost uid="dc-2">
      <costClass>mud</costClass>
      <costCode>mud package</costCode>
      <costItemDescription>daily mud package cost</costItemDescription>
      <costAmount currency="$">0.00</costAmount>
    </dayCost>
    <dayCost uid="dc-3">
      <costClass>mud</costClass>
      <costCode>mud service</costCode>
      <costItemDescription>daily mud service cost</costItemDescription>
      <costAmount currency="$">90.00</costAmount>
    </dayCost>
    <dayCost uid="dc-4">
      <costClass>mud</costClass>
      <costCode>mud engineering</costCode>
      <costItemDescription>daily mud engineering cost</costItemDescription>
      <costAmount currency="$">950.00</costAmount>
    </dayCost>
    <dayCost uid="dc-5">
      <costClass>mud</costClass>
      <costCode>mud tax</costCode>
      <costItemDescription>daily mud tax cost</costItemDescription>
      <costAmount currency="$">72.80</costAmount>
    </dayCost>
    <fluid uid="fluid-1">
      <type>Oil based</type>
      <locationSample>Suction</locationSample>
      <dTim>2022-07-28T13:00:00Z</dTim>
      <md uom="ft">2672.00</md>
      <density uom="lbm/galUS">12.10</density>
      <visFunnel uom="s">85.0</visFunnel>
      <tempVis uom="degF">150.0</tempVis>
      <pv uom="cP">37.0</pv>
      <yp uom="lbf/100ft2">9.0</yp>
      <gel10Sec uom="lbf/100ft2">7.0</gel10Sec>
      <gel10Min uom="lbf/100ft2">15.0</gel10Min>
      <gel30Min uom="lbf/100ft2">22.0</gel30Min>
      <tempHthp uom="degF">250.0</tempHthp>
      <filtrateHthp uom="mL">7.80</filtrateHthp>
      <filterCakeHthp uom="in/32">3</filterCakeHthp>
      <solidsPc uom="%">29.00</solidsPc>
      <waterPc uom="%">12.00</waterPc>
      <oilPc uom="%">59.00</oilPc>
      <solidsLowGravPc uom="%">22.61</solidsLowGravPc>
      <solidsCalcPc uom="%">27.84</solidsCalcPc>
      <baritePc uom="%">5.23</baritePc>
      <lcm uom="lbm/bbl">0.00</lcm>
      <chloride uom="mg/L">28000</chloride>
      <calcium uom="mg/L">15828</calcium>
      <rheometer uid="rheometer-1">
        <tempRheom uom="degF">150.0</tempRheom>
        <vis3Rpm>4</vis3Rpm>
        <vis6Rpm>5</vis6Rpm>
        <vis100Rpm>20</vis100Rpm>
        <vis200Rpm>33</vis200Rpm>
        <vis300Rpm>46</vis300Rpm>
        <vis600Rpm>83</vis600Rpm>
      </rheometer>
      <lime uom="lbm/bbl">1.42</lime>
      <electStab uom="V">1115.00</electStab>
      <calciumChloride uom="mg/L">332895</calciumChloride>
      <company>Valence Drilling Fluids</company>
      <engineer>Mike Francis</engineer>
      <asg>2.88</asg>
      <solidsHiGravPc uom="%">5.23</solidsHiGravPc>
      <solCorPc uom="%">27.84</solCorPc>
      <comments>Recommended Tour Treatment: Maintain Mud Weight 11.0 APCO          Viscosity 55-65

Adding lime for alkalinity
Adding CACL2 for WPS
Adding XMP for HPHT control
Adding IN FORCE OW PLUS, S & P for emulsion/wetting
Running Diesel 10 bph & Water 3bph  for O/W Ratio & help control LGS
Dusting up active with barite as needed while running centrifuge, diesel & water
Remarks: Finished rig skid to 10H well. Nipple up BOPE and test. Finish rig up flow line and clean sand traps. R/U @ report time.</comments>
    </fluid>
    <fluid uid="fluid-2">
      <type>Oil based</type>
      <locationSample>Suction</locationSample>
      <dTim>2022-07-29T01:00:00Z</dTim>
      <md uom="ft">2672.00</md>
      <density uom="lbm/galUS">11.10</density>
      <visFunnel uom="s">75.0</visFunnel>
      <tempVis uom="degF">150.0</tempVis>
      <pv uom="cP">28.0</pv>
      <yp uom="lbf/100ft2">10.0</yp>
      <gel10Sec uom="lbf/100ft2">4.0</gel10Sec>
      <gel10Min uom="lbf/100ft2">10.0</gel10Min>
      <gel30Min uom="lbf/100ft2">16.0</gel30Min>
      <tempHthp uom="degF">250.0</tempHthp>
      <filtrateHthp uom="mL">8.60</filtrateHthp>
      <filterCakeHthp uom="in/32">3</filterCakeHthp>
      <solidsPc uom="%">22.00</solidsPc>
      <waterPc uom="%">15.00</waterPc>
      <oilPc uom="%">63.00</oilPc>
      <solidsLowGravPc uom="%">15.73</solidsLowGravPc>
      <solidsCalcPc uom="%">20.87</solidsCalcPc>
      <baritePc uom="%">5.14</baritePc>
      <lcm uom="lbm/bbl">0.00</lcm>
      <chloride uom="mg/L">28000</chloride>
      <calcium uom="mg/L">15828</calcium>
      <rheometer uid="rheometer-1">
        <tempRheom uom="degF">150.0</tempRheom>
        <vis3Rpm>3</vis3Rpm>
        <vis6Rpm>4</vis6Rpm>
        <vis100Rpm>16</vis100Rpm>
        <vis200Rpm>27</vis200Rpm>
        <vis300Rpm>38</vis300Rpm>
        <vis600Rpm>66</vis600Rpm>
      </rheometer>
      <lime uom="lbm/bbl">1.42</lime>
      <electStab uom="V">1010.00</electStab>
      <calciumChloride uom="mg/L">271659</calciumChloride>
      <company>Valence Drilling Fluids</company>
      <engineer>Mike Francis</engineer>
      <asg>2.97</asg>
      <solidsHiGravPc uom="%">5.14</solidsHiGravPc>
      <solCorPc uom="%">20.87</solCorPc>
      <comments>Recommended Tour Treatment: Maintain Mud Weight 11.0 APCO          Viscosity 55-65

Adding lime for alkalinity
Adding CACL2 for WPS
Adding XMP for HPHT control
Adding IN FORCE OW PLUS, S & P for emulsion/wetting
Running Diesel 10 bph & Water 3bph  for O/W Ratio & help control LGS
Dusting up active with barite as needed while running centrifuge, diesel & water
Remarks: Finished rig skid to 10H well. Nipple up BOPE and test. Finish rig up flow line and clean sand traps. R/U @ report time.</comments>
    </fluid>
    <pitVolume uid="pv-1">
      <pit uidRef="Active">1</pit>
      <dTim>2022-08-31T16:56:36Z</dTim>
      <volPit uom="bbl">250.0</volPit>
      <densFluid uom="lbm/galUS">12.00</densFluid>
      <descFluid>OBM</descFluid>
    </pitVolume>
    <pitVolume uid="pv-2">
      <pit uidRef="Trip Tank">2</pit>
      <dTim>2022-08-31T16:56:36Z</dTim>
      <volPit uom="bbl">0</volPit>
      <densFluid uom="lbm/galUS">12.00</densFluid>
      <descFluid>OBM</descFluid>
    </pitVolume>
    <pitVolume uid="pv-3">
      <pit uidRef="Slug Pit">3</pit>
      <dTim>2022-08-31T16:56:36Z</dTim>
      <volPit uom="bbl">0</volPit>
      <densFluid uom="lbm/galUS">12.00</densFluid>
      <descFluid>OBM</descFluid>
    </pitVolume>
    <pitVolume uid="pv-4">
      <pit uidRef="Frac #1">4</pit>
      <dTim>2022-08-31T16:56:36Z</dTim>
      <volPit uom="bbl">294.0</volPit>
      <densFluid uom="lbm/galUS">12.00</densFluid>
      <descFluid>OBM</descFluid>
    </pitVolume>
    <pitVolume uid="pv-5">
      <pit uidRef="Frac #2">5</pit>
      <dTim>2022-08-31T16:56:36Z</dTim>
      <volPit uom="bbl">493.0</volPit>
      <densFluid uom="lbm/galUS">12.00</densFluid>
      <descFluid>OBM</descFluid>
    </pitVolume>
    <pitVolume uid="pv-6">
      <pit uidRef="Frac #3">6</pit>
      <dTim>2022-08-31T16:56:36Z</dTim>
      <volPit uom="bbl">486.0</volPit>
      <densFluid uom="lbm/galUS">12.00</densFluid>
      <descFluid>OBM</descFluid>
    </pitVolume>
    <pitVolume uid="pv-7">
      <pit uidRef="Frac #4">7</pit>
      <dTim>2022-08-31T16:56:36Z</dTim>
      <volPit uom="bbl">478.0</volPit>
      <densFluid uom="lbm/galUS">12.00</densFluid>
      <descFluid>OBM</descFluid>
    </pitVolume>
    <pitVolume uid="pv-8">
      <pit uidRef="Frac #5">8</pit>
      <dTim>2022-08-31T16:56:36Z</dTim>
      <volPit uom="bbl">475.0</volPit>
      <densFluid uom="lbm/galUS">12.00</densFluid>
      <descFluid>OBM</descFluid>
    </pitVolume>
    <mudVolume>
      <volTotMudStart uom="bbl">0.0</volTotMudStart>
      <volMudDumped uom="bbl">349.0</volMudDumped>
      <volMudReceived uom="bbl">2776.0</volMudReceived>
      <volMudReturned uom="bbl">0.0</volMudReturned>
      <mudLosses>
        <volLostShakerSurf uom="bbl">0.0</volLostShakerSurf>
        <volLostMudCleanerSurf uom="bbl">0.0</volLostMudCleanerSurf>
        <volLostPitsSurf uom="bbl">0.0</volLostPitsSurf>
        <volLostTrippingSurf uom="bbl">0.0</volLostTrippingSurf>
        <volLostOtherSurf uom="bbl">349.0</volLostOtherSurf>
        <volTotMudLostSurf uom="bbl">349.0</volTotMudLostSurf>
        <volLostCircHole uom="bbl">0.0</volLostCircHole>
        <volLostCsgHole uom="bbl">0.0</volLostCsgHole>
        <volLostCmtHole uom="bbl">0.0</volLostCmtHole>
        <volLostBhdCsgHole uom="bbl">0.0</volLostBhdCsgHole>
        <volLostAbandonHole uom="bbl">0.0</volLostAbandonHole>
        <volLostOtherHole uom="bbl">0.0</volLostOtherHole>
        <volTotMudLostHole uom="bbl">0.0</volTotMudLostHole>
      </mudLosses>
      <volMudBuilt uom="bbl">599.0</volMudBuilt>
      <volMudString uom="bbl">0.0</volMudString>
      <volMudCasing uom="bbl">0.0</volMudCasing>
      <volMudHole uom="bbl">0.0</volMudHole>
      <volMudRiser uom="bbl">0.0</volMudRiser>
      <volTotMudEnd uom="bbl">250.0</volTotMudEnd>
    </mudVolume>
    <mudInventory uid="mi-1">
      <name>DIESEL, GAL</name>
      <itemVolPerUnit uom="galUS">1</itemVolPerUnit>
      <pricePerUnit currency="$">0.00</pricePerUnit>
      <qtyStart>0</qtyStart>
      <qtyAdjustment>0</qtyAdjustment>
      <qtyReceived>18210</qtyReceived>
      <qtyReturned>0</qtyReturned>
      <qtyUsed>2040</qtyUsed>
      <costItem currency="$">0.00</costItem>
      <qtyOnLocation>16170</qtyOnLocation>
    </mudInventory>
    <mudInventory uid="mi-2">
      <name>BARITE 4.1, 100#</name>
      <itemWtPerUnit uom="lbm">100</itemWtPerUnit>
      <pricePerUnit currency="$">14.50</pricePerUnit>
      <qtyStart>0</qtyStart>
      <qtyAdjustment>0</qtyAdjustment>
      <qtyReceived>78</qtyReceived>
      <qtyReturned>0</qtyReturned>
      <qtyUsed>0</qtyUsed>
      <costItem currency="$">0.00</costItem>
      <qtyOnLocation>78</qtyOnLocation>
    </mudInventory>
    <mudInventory uid="mi-3">
      <name>BARITE 4.1, TON</name>
      <itemWtPerUnit uom="tonUS">1</itemWtPerUnit>
      <pricePerUnit currency="$">235.00</pricePerUnit>
      <qtyStart>0</qtyStart>
      <qtyAdjustment>0</qtyAdjustment>
      <qtyReceived>70</qtyReceived>
      <qtyReturned>0</qtyReturned>
      <qtyUsed>0</qtyUsed>
      <costItem currency="$">0.00</costItem>
      <qtyOnLocation>70</qtyOnLocation>
    </mudInventory>
    <pumpOp uid="po-1">
      <pump uidRef="Pump-1">1</pump>
      <idLiner uom="in">5.000</idLiner>
      <lenStroke uom="in">12.000</lenStroke>
      <rateStroke uom="rpm">0</rateStroke>
      <pressure uom="psi">0</pressure>
      <pcEfficiency uom="%">95.00</pcEfficiency>
    </pumpOp>
    <pumpOp uid="po-2">
      <pump uidRef="Pump-2">2</pump>
      <idLiner uom="in">5.000</idLiner>
      <lenStroke uom="in">12.000</lenStroke>
      <rateStroke uom="rpm">0</rateStroke>
      <pressure uom="psi">0</pressure>
      <pcEfficiency uom="%">95.00</pcEfficiency>
    </pumpOp>
    <pumpOp uid="po-3">
      <pump uidRef="Pump-3">3</pump>
      <idLiner uom="in">5.000</idLiner>
      <lenStroke uom="in">12.000</lenStroke>
      <rateStroke uom="rpm">0</rateStroke>
      <pressure uom="psi">0</pressure>
      <pcEfficiency uom="%">95.00</pcEfficiency>
    </pumpOp>
    <costDayMud currency="$">1112.80</costDayMud>
    <nameFormation>Austin Chalk</nameFormation>
    <diaCsgLast uom="in">9.625</diaCsgLast>
    <mdCsgLast uom="ft">2672.00</mdCsgLast>
    <sum24Hr>Finished rig skid to 10H well. Nipple up BOPE and test. Finish rig up flow line and clean sand traps. R/U @ report time.</sum24Hr>
  </opsReport>
</opsReports>
</code>```

Body:
I have some XML that I am needing to turn into structured data in Python.  When I go to get the data from the XML document below I am not seeing any children printed out.  My problem is that I need to get each row for pumpOp returned while I am only getting 1 record returned with the code below.

There should be 3 records in the bottom of the XML file that get returned.  I need to know how to access each element of the XML below.

I believe this record is a sub-child but when I try to print the children nothing prints.  Code examples are appreciated.

Code I have tried (for reports in myroot.findall('.//{*}pumpOp'):   #<-- for some reason this only works with a wild card statement like here or with the full path: for reports in myroot.findall('.//{http://www.witsml.org/schemas/131}pumpOp')):

import xml.etree.ElementTree as ET

mytree = ET.parse('C:\\Users\\uname\\Documents\\RPA\\PGE_DOS_K_10H_WITSML\\OpsReport_7_28_2022.xml')
myroot = mytree.getroot()
print(myroot)

for child in myroot:                    # No Children are printed, why?
    print(child.tag, child.attrib)

reportsArray = []

# iterate over all the nodes
for reports in myroot.findall('.//{*}pumpOp'):   #<-- for some reason this only works with a wild card statement like here or with the full path: for reports in myroot.findall('.//{http://www.witsml.org/schemas/131}pumpOp')
    # access all elements in node
    for element in reports:
        ele_name = element.tag
        ele_value = reports.find(element.tag).text
        print(ele_name, ' : ', ele_value)

XML Data:

<?xml version="1.0" encoding="utf-8"?>
<opsReports xmlns="http://www.witsml.org/schemas/131" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.witsml.org/schemas/131  ../obj_opsReport.xsd" version="1.3.1.1">
  <documentInfo>
    <DocumentName>opsReport</DocumentName>
    <FileCreationInformation>
      <FileCreationDate>2022-08-31T16:56:36Z</FileCreationDate>
      <SoftwareName>MUDPRO+</SoftwareName>
      <FileCreator>DDye</FileCreator>
    </FileCreationInformation>
  </documentInfo>
  <opsReport uidWell="PGE_DOS_K_10H" uidWellbore="3_-_Prod._Vertical" uid="1">
    <nameWell>PGE DOS K 10H</nameWell>
    <nameWellbore>3_-_Prod._Vertical</nameWellbore>
    <name>1</name>
    <rig>Nabors 890</rig>
    <dTim>2022-07-29T01:00:00Z</dTim>
    <eTimSpud uom="d">72</eTimSpud>
    <mdReport uom="ft">2672.00</mdReport>
    <tvdReport uom="ft">2672.00</tvdReport>
    <distDrill uom="ft">2672.00</distDrill>
    <engineer>Mike Francis</engineer>
    <activity uid="act-1">
      <phase>3 - Prod. Vertical</phase>
      <operator>CHK</operator>
    </activity>
    <drillingParams uid="dp-1">
      <eTimOpBit uom="h">0</eTimOpBit>
      <mdHoleStop uom="ft">2672.00</mdHoleStop>
      <wtMud uom="lbm/galUS">12.10</wtMud>
    </drillingParams>
    <wbGeometry>
      <dTimReport>2022-07-29T01:00:00Z</dTimReport>
      <mdBottom uom="ft">2672.00</mdBottom>
      <wbGeometrySection uid="wbsection-1">
        <typeHoleCasing>casing</typeHoleCasing>
        <mdTop uom="ft">0.00</mdTop>
        <mdBottom uom="ft">2672.00</mdBottom>
        <idSection uom="in">8.921</idSection>
        <odSection uom="in">9.625</odSection>
      </wbGeometrySection>
      <wbGeometrySection uid="wbsection-12">
        <typeHoleCasing>open hole</typeHoleCasing>
        <idSection uom="in">8.750</idSection>
      </wbGeometrySection>
    </wbGeometry>
    <dayCost uid="dc-1">
      <costClass>mud</costClass>
      <costCode>mud product</costCode>
      <costItemDescription>daily mud product cost</costItemDescription>
      <costAmount currency="$">0.00</costAmount>
    </dayCost>
    <dayCost uid="dc-2">
      <costClass>mud</costClass>
      <costCode>mud package</costCode>
      <costItemDescription>daily mud package cost</costItemDescription>
      <costAmount currency="$">0.00</costAmount>
    </dayCost>
    <dayCost uid="dc-3">
      <costClass>mud</costClass>
      <costCode>mud service</costCode>
      <costItemDescription>daily mud service cost</costItemDescription>
      <costAmount currency="$">90.00</costAmount>
    </dayCost>
    <dayCost uid="dc-4">
      <costClass>mud</costClass>
      <costCode>mud engineering</costCode>
      <costItemDescription>daily mud engineering cost</costItemDescription>
      <costAmount currency="$">950.00</costAmount>
    </dayCost>
    <dayCost uid="dc-5">
      <costClass>mud</costClass>
      <costCode>mud tax</costCode>
      <costItemDescription>daily mud tax cost</costItemDescription>
      <costAmount currency="$">72.80</costAmount>
    </dayCost>
    <fluid uid="fluid-1">
      <type>Oil based</type>
      <locationSample>Suction</locationSample>
      <dTim>2022-07-28T13:00:00Z</dTim>
      <md uom="ft">2672.00</md>
      <density uom="lbm/galUS">12.10</density>
      <visFunnel uom="s">85.0</visFunnel>
      <tempVis uom="degF">150.0</tempVis>
      <pv uom="cP">37.0</pv>
      <yp uom="lbf/100ft2">9.0</yp>
      <gel10Sec uom="lbf/100ft2">7.0</gel10Sec>
      <gel10Min uom="lbf/100ft2">15.0</gel10Min>
      <gel30Min uom="lbf/100ft2">22.0</gel30Min>
      <tempHthp uom="degF">250.0</tempHthp>
      <filtrateHthp uom="mL">7.80</filtrateHthp>
      <filterCakeHthp uom="in/32">3</filterCakeHthp>
      <solidsPc uom="%">29.00</solidsPc>
      <waterPc uom="%">12.00</waterPc>
      <oilPc uom="%">59.00</oilPc>
      <solidsLowGravPc uom="%">22.61</solidsLowGravPc>
      <solidsCalcPc uom="%">27.84</solidsCalcPc>
      <baritePc uom="%">5.23</baritePc>
      <lcm uom="lbm/bbl">0.00</lcm>
      <chloride uom="mg/L">28000</chloride>
      <calcium uom="mg/L">15828</calcium>
      <rheometer uid="rheometer-1">
        <tempRheom uom="degF">150.0</tempRheom>
        <vis3Rpm>4</vis3Rpm>
        <vis6Rpm>5</vis6Rpm>
        <vis100Rpm>20</vis100Rpm>
        <vis200Rpm>33</vis200Rpm>
        <vis300Rpm>46</vis300Rpm>
        <vis600Rpm>83</vis600Rpm>
      </rheometer>
      <lime uom="lbm/bbl">1.42</lime>
      <electStab uom="V">1115.00</electStab>
      <calciumChloride uom="mg/L">332895</calciumChloride>
      <company>Valence Drilling Fluids</company>
      <engineer>Mike Francis</engineer>
      <asg>2.88</asg>
      <solidsHiGravPc uom="%">5.23</solidsHiGravPc>
      <solCorPc uom="%">27.84</solCorPc>
      <comments>Recommended Tour Treatment: Maintain Mud Weight 11.0 APCO          Viscosity 55-65

Adding lime for alkalinity
Adding CACL2 for WPS
Adding XMP for HPHT control
Adding IN FORCE OW PLUS, S & P for emulsion/wetting
Running Diesel 10 bph & Water 3bph  for O/W Ratio & help control LGS
Dusting up active with barite as needed while running centrifuge, diesel & water
Remarks: Finished rig skid to 10H well. Nipple up BOPE and test. Finish rig up flow line and clean sand traps. R/U @ report time.</comments>
    </fluid>
    <fluid uid="fluid-2">
      <type>Oil based</type>
      <locationSample>Suction</locationSample>
      <dTim>2022-07-29T01:00:00Z</dTim>
      <md uom="ft">2672.00</md>
      <density uom="lbm/galUS">11.10</density>
      <visFunnel uom="s">75.0</visFunnel>
      <tempVis uom="degF">150.0</tempVis>
      <pv uom="cP">28.0</pv>
      <yp uom="lbf/100ft2">10.0</yp>
      <gel10Sec uom="lbf/100ft2">4.0</gel10Sec>
      <gel10Min uom="lbf/100ft2">10.0</gel10Min>
      <gel30Min uom="lbf/100ft2">16.0</gel30Min>
      <tempHthp uom="degF">250.0</tempHthp>
      <filtrateHthp uom="mL">8.60</filtrateHthp>
      <filterCakeHthp uom="in/32">3</filterCakeHthp>
      <solidsPc uom="%">22.00</solidsPc>
      <waterPc uom="%">15.00</waterPc>
      <oilPc uom="%">63.00</oilPc>
      <solidsLowGravPc uom="%">15.73</solidsLowGravPc>
      <solidsCalcPc uom="%">20.87</solidsCalcPc>
      <baritePc uom="%">5.14</baritePc>
      <lcm uom="lbm/bbl">0.00</lcm>
      <chloride uom="mg/L">28000</chloride>
      <calcium uom="mg/L">15828</calcium>
      <rheometer uid="rheometer-1">
        <tempRheom uom="degF">150.0</tempRheom>
        <vis3Rpm>3</vis3Rpm>
        <vis6Rpm>4</vis6Rpm>
        <vis100Rpm>16</vis100Rpm>
        <vis200Rpm>27</vis200Rpm>
        <vis300Rpm>38</vis300Rpm>
        <vis600Rpm>66</vis600Rpm>
      </rheometer>
      <lime uom="lbm/bbl">1.42</lime>
      <electStab uom="V">1010.00</electStab>
      <calciumChloride uom="mg/L">271659</calciumChloride>
      <company>Valence Drilling Fluids</company>
      <engineer>Mike Francis</engineer>
      <asg>2.97</asg>
      <solidsHiGravPc uom="%">5.14</solidsHiGravPc>
      <solCorPc uom="%">20.87</solCorPc>
      <comments>Recommended Tour Treatment: Maintain Mud Weight 11.0 APCO          Viscosity 55-65

Adding lime for alkalinity
Adding CACL2 for WPS
Adding XMP for HPHT control
Adding IN FORCE OW PLUS, S & P for emulsion/wetting
Running Diesel 10 bph & Water 3bph  for O/W Ratio & help control LGS
Dusting up active with barite as needed while running centrifuge, diesel & water
Remarks: Finished rig skid to 10H well. Nipple up BOPE and test. Finish rig up flow line and clean sand traps. R/U @ report time.</comments>
    </fluid>
    <pitVolume uid="pv-1">
      <pit uidRef="Active">1</pit>
      <dTim>2022-08-31T16:56:36Z</dTim>
      <volPit uom="bbl">250.0</volPit>
      <densFluid uom="lbm/galUS">12.00</densFluid>
      <descFluid>OBM</descFluid>
    </pitVolume>
    <pitVolume uid="pv-2">
      <pit uidRef="Trip Tank">2</pit>
      <dTim>2022-08-31T16:56:36Z</dTim>
      <volPit uom="bbl">0</volPit>
      <densFluid uom="lbm/galUS">12.00</densFluid>
      <descFluid>OBM</descFluid>
    </pitVolume>
    <pitVolume uid="pv-3">
      <pit uidRef="Slug Pit">3</pit>
      <dTim>2022-08-31T16:56:36Z</dTim>
      <volPit uom="bbl">0</volPit>
      <densFluid uom="lbm/galUS">12.00</densFluid>
      <descFluid>OBM</descFluid>
    </pitVolume>
    <pitVolume uid="pv-4">
      <pit uidRef="Frac #1">4</pit>
      <dTim>2022-08-31T16:56:36Z</dTim>
      <volPit uom="bbl">294.0</volPit>
      <densFluid uom="lbm/galUS">12.00</densFluid>
      <descFluid>OBM</descFluid>
    </pitVolume>
    <pitVolume uid="pv-5">
      <pit uidRef="Frac #2">5</pit>
      <dTim>2022-08-31T16:56:36Z</dTim>
      <volPit uom="bbl">493.0</volPit>
      <densFluid uom="lbm/galUS">12.00</densFluid>
      <descFluid>OBM</descFluid>
    </pitVolume>
    <pitVolume uid="pv-6">
      <pit uidRef="Frac #3">6</pit>
      <dTim>2022-08-31T16:56:36Z</dTim>
      <volPit uom="bbl">486.0</volPit>
      <densFluid uom="lbm/galUS">12.00</densFluid>
      <descFluid>OBM</descFluid>
    </pitVolume>
    <pitVolume uid="pv-7">
      <pit uidRef="Frac #4">7</pit>
      <dTim>2022-08-31T16:56:36Z</dTim>
      <volPit uom="bbl">478.0</volPit>
      <densFluid uom="lbm/galUS">12.00</densFluid>
      <descFluid>OBM</descFluid>
    </pitVolume>
    <pitVolume uid="pv-8">
      <pit uidRef="Frac #5">8</pit>
      <dTim>2022-08-31T16:56:36Z</dTim>
      <volPit uom="bbl">475.0</volPit>
      <densFluid uom="lbm/galUS">12.00</densFluid>
      <descFluid>OBM</descFluid>
    </pitVolume>
    <mudVolume>
      <volTotMudStart uom="bbl">0.0</volTotMudStart>
      <volMudDumped uom="bbl">349.0</volMudDumped>
      <volMudReceived uom="bbl">2776.0</volMudReceived>
      <volMudReturned uom="bbl">0.0</volMudReturned>
      <mudLosses>
        <volLostShakerSurf uom="bbl">0.0</volLostShakerSurf>
        <volLostMudCleanerSurf uom="bbl">0.0</volLostMudCleanerSurf>
        <volLostPitsSurf uom="bbl">0.0</volLostPitsSurf>
        <volLostTrippingSurf uom="bbl">0.0</volLostTrippingSurf>
        <volLostOtherSurf uom="bbl">349.0</volLostOtherSurf>
        <volTotMudLostSurf uom="bbl">349.0</volTotMudLostSurf>
        <volLostCircHole uom="bbl">0.0</volLostCircHole>
        <volLostCsgHole uom="bbl">0.0</volLostCsgHole>
        <volLostCmtHole uom="bbl">0.0</volLostCmtHole>
        <volLostBhdCsgHole uom="bbl">0.0</volLostBhdCsgHole>
        <volLostAbandonHole uom="bbl">0.0</volLostAbandonHole>
        <volLostOtherHole uom="bbl">0.0</volLostOtherHole>
        <volTotMudLostHole uom="bbl">0.0</volTotMudLostHole>
      </mudLosses>
      <volMudBuilt uom="bbl">599.0</volMudBuilt>
      <volMudString uom="bbl">0.0</volMudString>
      <volMudCasing uom="bbl">0.0</volMudCasing>
      <volMudHole uom="bbl">0.0</volMudHole>
      <volMudRiser uom="bbl">0.0</volMudRiser>
      <volTotMudEnd uom="bbl">250.0</volTotMudEnd>
    </mudVolume>
    <mudInventory uid="mi-1">
      <name>DIESEL, GAL</name>
      <itemVolPerUnit uom="galUS">1</itemVolPerUnit>
      <pricePerUnit currency="$">0.00</pricePerUnit>
      <qtyStart>0</qtyStart>
      <qtyAdjustment>0</qtyAdjustment>
      <qtyReceived>18210</qtyReceived>
      <qtyReturned>0</qtyReturned>
      <qtyUsed>2040</qtyUsed>
      <costItem currency="$">0.00</costItem>
      <qtyOnLocation>16170</qtyOnLocation>
    </mudInventory>
    <mudInventory uid="mi-2">
      <name>BARITE 4.1, 100#</name>
      <itemWtPerUnit uom="lbm">100</itemWtPerUnit>
      <pricePerUnit currency="$">14.50</pricePerUnit>
      <qtyStart>0</qtyStart>
      <qtyAdjustment>0</qtyAdjustment>
      <qtyReceived>78</qtyReceived>
      <qtyReturned>0</qtyReturned>
      <qtyUsed>0</qtyUsed>
      <costItem currency="$">0.00</costItem>
      <qtyOnLocation>78</qtyOnLocation>
    </mudInventory>
    <mudInventory uid="mi-3">
      <name>BARITE 4.1, TON</name>
      <itemWtPerUnit uom="tonUS">1</itemWtPerUnit>
      <pricePerUnit currency="$">235.00</pricePerUnit>
      <qtyStart>0</qtyStart>
      <qtyAdjustment>0</qtyAdjustment>
      <qtyReceived>70</qtyReceived>
      <qtyReturned>0</qtyReturned>
      <qtyUsed>0</qtyUsed>
      <costItem currency="$">0.00</costItem>
      <qtyOnLocation>70</qtyOnLocation>
    </mudInventory>
    <pumpOp uid="po-1">
      <pump uidRef="Pump-1">1</pump>
      <idLiner uom="in">5.000</idLiner>
      <lenStroke uom="in">12.000</lenStroke>
      <rateStroke uom="rpm">0</rateStroke>
      <pressure uom="psi">0</pressure>
      <pcEfficiency uom="%">95.00</pcEfficiency>
    </pumpOp>
    <pumpOp uid="po-2">
      <pump uidRef="Pump-2">2</pump>
      <idLiner uom="in">5.000</idLiner>
      <lenStroke uom="in">12.000</lenStroke>
      <rateStroke uom="rpm">0</rateStroke>
      <pressure uom="psi">0</pressure>
      <pcEfficiency uom="%">95.00</pcEfficiency>
    </pumpOp>
    <pumpOp uid="po-3">
      <pump uidRef="Pump-3">3</pump>
      <idLiner uom="in">5.000</idLiner>
      <lenStroke uom="in">12.000</lenStroke>
      <rateStroke uom="rpm">0</rateStroke>
      <pressure uom="psi">0</pressure>
      <pcEfficiency uom="%">95.00</pcEfficiency>
    </pumpOp>
    <costDayMud currency="$">1112.80</costDayMud>
    <nameFormation>Austin Chalk</nameFormation>
    <diaCsgLast uom="in">9.625</diaCsgLast>
    <mdCsgLast uom="ft">2672.00</mdCsgLast>
    <sum24Hr>Finished rig skid to 10H well. Nipple up BOPE and test. Finish rig up flow line and clean sand traps. R/U @ report time.</sum24Hr>
  </opsReport>
</opsReports>


来源: stackexchange

问:
Unable to create or delete specific page in Mediawiki
I get this error for a specific page (MW 1.31) without following a history link.

```<code>The revision #0 of the page named "x" does not exist.

This is usually caused by following an outdated history link to a page that has been deleted. Details can be found in the deletion log.
</code>```

Deleting is not possible. When I try to edit and save, I get the same error and/or

```<code>Someone else has changed this page since you started editing it. The upper text area contains the page text as it currently exists. Your changes are shown in the lower text area. You will have to merge your changes into the existing text. Only the text in the upper text area will be saved when you press "Save changes".
</code>```

The page in pages table:
https://ibb.co/tw6tydF

And in revisions table:
https://ibb.co/RDGbmnc

Would deleting those entries be a solution or there may be some other relevant instance in the dB?

ContentLicense: CC BY-SA 4.0

Body:
I get this error for a specific page (MW 1.31) without following a history link.

The revision #0 of the page named "x" does not exist.

This is usually caused by following an outdated history link to a page that has been deleted. Details can be found in the deletion log.

Deleting is not possible. When I try to edit and save, I get the same error and/or

Someone else has changed this page since you started editing it. The upper text area contains the page text as it currently exists. Your changes are shown in the lower text area. You will have to merge your changes into the existing text. Only the text in the upper text area will be saved when you press "Save changes".

The page in pages table:
https://ibb.co/tw6tydF

And in revisions table:
https://ibb.co/RDGbmnc

Would deleting those entries be a solution or there may be some other relevant instance in the dB?


问:
How do I forward a header when using NGINX as a reverse proxy?
I am trying to emulate what GCP is doing with its API gateway. It currently forwards the Authorization header to a x-forwarded-authorization header I would like to do this as well. Currently I am using NGINX for my proxy and it seems like it should be able to handle this but I am relatively new to it.

How can I use my NGINX reverse proxy to forward the header?


问:
Issue sending form submittion to API
I'm working on building a basic form submission app using React, JS, and some basic HTML. Within the app, I'm sending the results of the form submission as a POST request to an API.

The issue I am facing is I am seeing a connection to the API (getting a 200 with each submission) but the values I am inputting to the form are appearing as undefined. I believe this is related to the use of the handleSubmit function in my code, but I cannot figure out how to send the form data itself.

Example of my code below:

class Form extends React.Component {
  constructor(props) {
    super(props);

    // declare input fields in state
    this.state = { value: "" };

    this.handleChange = this.handleChange.bind(this);
    this.handleSubmit = this.handleSubmit.bind(this);
  }

  // handle change events
  handleChange = (event) => {
    this.setState({
      value: event.target.value,
    });
  };

  // handle submission events
  handleSubmit = (events) => {
    const username = "- username -";
    const password = "- password - ";

    let data = `${username}:${password}`;
    let encodedString = btoa(data);
    let proxyLink = "- proxy URL -";
    let URL = "- endpoint URL -";
    let proxyURL = proxyLink + URL;

    const options = {
      method: "POST",
      body: JSON.stringify(this.state),
      headers: {
        accept: "application/json",
        authorization: `Basic ${encodedString}`,
      },
    };

    fetch(proxyURL, options)
      .then((response) => response.json())
      .then((response) => console.log(response))
      .catch((err) => console.error(err));
    events.preventDefault();
  };

  render() {
    const { values } = this.state;
    return (
      <form onSubmit={this.handleSubmit}>

          value:
          <input
            type="text"
            value={attibute_name}
            onChange={this.handleChange}
            name="attribute_name"
          />

      </form>
    );
  }
}

export default Form;
```

I've tried changing the way I'm using handleSubmit, even creating it as a variable and using an async function. The idea was similar to this (https://www.techomoro.com/submit-a-form-data-to-rest-api-in-a-react-app/) but it lead to worse results than what I had before.

Title: Issue sending form submittion to API

Body:
I'm working on building a basic form submission app using React, JS, and some basic HTML. Within the app, I'm sending the results of the form submission as a POST request to an API.

The issue I am facing is I am seeing a connection to the API (getting a 200 with each submission) but the values I am inputting to the form are appearing as undefined. I believe this is related to the use of the handleSubmit function in my code, but I cannot figure out how to send the form data itself.

Example of my code below:

class Form extends React.Component {
  constructor(props) {
    super(props);

    // declare input fields in state
    this.state = { value: "" };

    this.handleChange = this.handleChange.bind(this);
    this.handleSubmit = this.handleSubmit.bind(this);
  }

  // handle change events
  handleChange = (event) => {
    this.setState({
      value: event.target.value,
    });
  };

  // handle submission events
  handleSubmit = (events) => {
    const username = "- username -";
    const password = "- password - ";

    let data = `${username}:${password}`;
    let encodedString = btoa(data);
    let proxyLink = "- proxy URL -";
    let URL = "- endpoint URL -";
    let proxyURL = proxyLink + URL;

    const options = {
      method: "POST",
      body: JSON.stringify(this.state),
      headers: {
        accept: "application/json",
        authorization: `Basic ${encodedString}`,
      },
    };

    fetch(proxyURL, options)
      .then((response) => response.json())
      .then((response) => console.log(response))
      .catch((err) => console.error(err));
    events.preventDefault();
  };

  render() {
    const { values } = this.state;
    return (
      <form onSubmit={this.handleSubmit}>

          value:
          <input
            type="text"
            value={attibute_name}
            onChange={this.handleChange}
            name="attribute_name"
          />

      </form>
    );
  }
}

export default Form;

I've tried changing the way I'm using handleSubmit, even creating it as a variable and using an async function. The idea was similar to this (https://www.techomoro.com/submit-a-form-data-to-rest-api-in-a-react-app/) but it lead to worse results than what I had before.


问:
How to use swift CommonCrypto to implement AES-CTR decryption in swift
I'm on iOS and trying to match the Android AES-CTR decryption.
The code on Android:

```<code>Cipher cipher = Cipher.getInstance("AES/CTR/NoPadding");
cipher.init(
      Cipher.DECRYPT_MODE,
      key,
      new IvParameterSpec(ivStr));
  result =
      cipher.doFinal(dataToDecrypt);
</code>```

I'm trying to use CommonCrypto in swift to implement the same logic above, there is what I have for now:

```<code>    func AESCRTDecrypt(with key: [UInt8], encryptedData: [UInt8], iv: [UInt8]) -> [UInt8]? {
    var resultBytes = [UInt8](repeating: 0, count: encryptedData.count)
    var resultLength = 0
    let status = CCCrypt(CCOperation(kCCDecrypt),
                         CCAlgorithm(kCCAlgorithmAES),
                         CCOptions(????), // THIS IS MY Question: how to set AES-CTR-DECRYPT option so it can be the same as Android above as "AES/CTR/NoPadding"?
                         key,
                         kCCKeySizeAES256,
                         iv,
                         encryptedData,
                         encryptedData.count,
                         &resultBytes,
                         resultBytes.count,
                         &resultLength)
    guard status == kCCSuccess else {
        Log.e("Failed in AES-CRT-DECRYPTION. Status: \(status)")
        return nil
    }
    return resultBytes
}
</code>```

My question was commented above:  how to set the option so it can be same as Android above as "AES/CTR/NoPadding"?
I checked the options and some example code for this function, there are only 2 options in the enum for options:

```<code>public var kCCOptionPKCS7Padding: Int { get }
public var kCCOptionECBMode: Int { get }
</code>```

Neither of them is what I want..

Could any help here?
Thanks!!

Body:
I'm on iOS and trying to match the Android AES-CTR decryption.
The code on Android:

Cipher cipher = Cipher.getInstance("AES/CTR/NoPadding");
cipher.init(
      Cipher.DECRYPT_MODE,
      key,
      new IvParameterSpec(ivStr));
  result =
      cipher.doFinal(dataToDecrypt);

I'm trying to use CommonCrypto in swift to implement the same logic above, there is what I have for now:

    func AESCRTDecrypt(with key: [UInt8], encryptedData: [UInt8], iv: [UInt8]) -> [UInt8]? {
    var resultBytes = [UInt8](repeating: 0, count: encryptedData.count)
    var resultLength = 0
    let status = CCCrypt(CCOperation(kCCDecrypt),
                         CCAlgorithm(kCCAlgorithmAES),
                         CCOptions(????), // THIS IS MY Question: how to set AES-CTR-DECRYPT option so it can be the same as Android above as "AES/CTR/NoPadding"?
                         key,
                         kCCKeySizeAES256,
                         iv,
                         encryptedData,
                         encryptedData.count,
                         &resultBytes,
                         resultBytes.count,
                         &resultLength)
    guard status == kCCSuccess else {
        Log.e("Failed in AES-CRT-DECRYPTION. Status: \(status)")
        return nil
    }
    return resultBytes
}

My question was commented above:  how to set the option so it can be same as Android above as "AES/CTR/NoPadding"?
I checked the options and some example code for this function, there are only 2 options in the enum for options:

public var kCCOptionPKCS7Padding: Int { get }
public var kCCOptionECBMode: Int { get }

Neither of them is what I want..

Could any help here?
Thanks!!


问:
Https isnt working with nginx as rev proxy - 502 bad gateway
I have a server with multiple websites that are running inside docker containers.
Now im trying to use certbot and generate ssl certificates and use them with https.
Http is working just fine on all sites, all of them are using same www-data user as a file owner.

My nginx sites_avaliable/enabled conf of one of sites below

```<code>server {
    listen 80;
    listen [::]:80;

    server_name example.com www.example.com;
    location / {
        proxy_pass http://0.0.0.0:1000;
        proxy_set_header Accept-Encoding "";
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}
server {
    listen 443 ssl;
    listen [::]:443 ssl;

    server_name example.com www.example.com;
    ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;
    location / {
        proxy_pass http://0.0.0.0:1443;
        proxy_ssl_server_name on;
        proxy_set_header Accept-Encoding "";
        proxy_set_header Host $http_host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        }
    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
    }
}
server {
    listen 80;
    listen [::]:80;

    server_name mysql.example.com www.mysql.example.com;
    location / {
        proxy_pass http://0.0.0.0:2000;
        proxy_set_header Accept-Encoding "";
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}
</code>```

whatever im doing it is not working and keeps throwing 502 bad gateway while trying to use https://example.com
does anybody know what can help here?

Ive installed php7.4-fpm, tried to run it but i think im doing this improperly

Body:
I have a server with multiple websites that are running inside docker containers.
Now im trying to use certbot and generate ssl certificates and use them with https.
Http is working just fine on all sites, all of them are using same www-data user as a file owner.

My nginx sites_avaliable/enabled conf of one of sites below

server {
    listen 80;
    listen [::]:80;

    server_name example.com www.example.com;
    location / {
        proxy_pass http://0.0.0.0:1000;
        proxy_set_header Accept-Encoding "";
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}
server {
    listen 443 ssl;
    listen [::]:443 ssl;

    server_name example.com www.example.com;
    ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;
    location / {
        proxy_pass http://0.0.0.0:1443;
        proxy_ssl_server_name on;
        proxy_set_header Accept-Encoding "";
        proxy_set_header Host $http_host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        }
    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
    }
}
server {
    listen 80;
    listen [::]:80;

    server_name mysql.example.com www.mysql.example.com;
    location / {
        proxy_pass http://0.0.0.0:2000;
        proxy_set_header Accept-Encoding "";
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}

whatever im doing it is not working and keeps throwing 502 bad gateway while trying to use https://example.com
does anybody know what can help here?

Ive installed php7.4-fpm, tried to run it but i think im doing this improperly


问:
How to deploy a React application with a JSON server on netlify?
I am following Brad Traversy from Traversy Media recent tutorial "React Front to Back 2022" - and here the feedback project.

The feedback project consists of two building blocks: the frontend and a mock backend in the form of JSON server.

Locally the application works - the frontend has port 3000. And the backend has port 5000.

Now i have the project deployed on netlify. The frontend works well, but on netlify the mock backend cannot be accessed.

In the console of the browser appear this error message:

```<code>GET https://twistleton.netlify.app/feedback?_sort=id&_order=desc 404
Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 0
</code>```

In package.json I have set a proxy and a start of react and server:

```<code>{
  "name": "feedback-now-app",
  "version": "0.1.0",
  "private": true,
  "proxy": "https://twistleton.netlify.app:5000",          // proxy
  "dependencies": {
    "@testing-library/jest-dom": "^5.16.5",
    "@testing-library/react": "^13.4.0",
    "@testing-library/user-event": "^13.5.0",
    "concurrently": "^7.6.0",
    "framer-motion": "^7.6.12",
    "json-server": "^0.17.1",
    "prop-types": "^15.8.1",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "react-icons": "^4.6.0",
    "react-router-dom": "^6.4.3",
    "react-scripts": "5.0.1",
    "uuid": "^9.0.0",
    "web-vitals": "^2.1.4"
  },
  "scripts": {
    "start": "concurrently \"npm run server\" \"react-scripts start\" ",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject",
    "server": "json-server --watch db.json --port 5000",
    "dev": "concurrently \"npm run server\" \"npm start\" "
  },
  "eslintConfig": {
    "extends": [
      "react-app",
      "react-app/jest"
    ]
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  }
}
</code>```

Is it necessary to split the application into two separate applications - a frontend and a backend part? Or is it because the server part does not start at all?

What am I doing wrong? Thanks in advance.

Body:
I am following Brad Traversy from Traversy Media recent tutorial "React Front to Back 2022" - and here the feedback project.

The feedback project consists of two building blocks: the frontend and a mock backend in the form of JSON server.

Locally the application works - the frontend has port 3000. And the backend has port 5000.

Now i have the project deployed on netlify. The frontend works well, but on netlify the mock backend cannot be accessed.

In the console of the browser appear this error message:

GET https://twistleton.netlify.app/feedback?_sort=id&_order=desc 404
Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 0

In package.json I have set a proxy and a start of react and server:

{
  "name": "feedback-now-app",
  "version": "0.1.0",
  "private": true,
  "proxy": "https://twistleton.netlify.app:5000",          // proxy
  "dependencies": {
    "@testing-library/jest-dom": "^5.16.5",
    "@testing-library/react": "^13.4.0",
    "@testing-library/user-event": "^13.5.0",
    "concurrently": "^7.6.0",
    "framer-motion": "^7.6.12",
    "json-server": "^0.17.1",
    "prop-types": "^15.8.1",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "react-icons": "^4.6.0",
    "react-router-dom": "^6.4.3",
    "react-scripts": "5.0.1",
    "uuid": "^9.0.0",
    "web-vitals": "^2.1.4"
  },
  "scripts": {
    "start": "concurrently \"npm run server\" \"react-scripts start\" ",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject",
    "server": "json-server --watch db.json --port 5000",
    "dev": "concurrently \"npm run server\" \"npm start\" "
  },
  "eslintConfig": {
    "extends": [
      "react-app",
      "react-app/jest"
    ]
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  }
}

Is it necessary to split the application into two separate applications - a frontend and a backend part? Or is it because the server part does not start at all?

What am I doing wrong? Thanks in advance.


问:
NT Authority\System account - SYSTEM group relationship
There is a system account "NT Authority\System", or "Local System".

And, usually, files or folders has full control security permissions for "SYSTEM", which seems to be a group.

Is there any relationship between these two entities?

I have found no information in internet relating each other.


问:
Unable to create a constant value of type xyz. Only primitive types or enumerations
I've used contains multiple times and I can't figure out what I have wrong this time to get this error. The readlist is just and abstraction over Entity Framework.</p>
```<code>var boxes = new List<StoredBox>()
        {
            new StoredBox()
            {
                Id = 11939,
                WarehouseSpaceId = 2886
            },
            new StoredBox()
            {
                Id = 11940,
                WarehouseSpaceId = 2887
            },
            new StoredBox()
            {
                Id = 11941,
                WarehouseSpaceId = 2888
            },
        };
        var storedBoxes =
            _service.StoredBoxService.ReadList(
                x => boxes.Select(s => s.Id).Contains(x.Id)
            ).ToList();
</code>```

Body:
I've used contains multiple times and I can't figure out what I have wrong this time to get this error. The readlist is just and abstraction over Entity Framework.

var boxes = new List<StoredBox>()
        {
            new StoredBox()
            {
                Id = 11939,
                WarehouseSpaceId = 2886
            },
            new StoredBox()
            {
                Id = 11940,
                WarehouseSpaceId = 2887
            },
            new StoredBox()
            {
                Id = 11941,
                WarehouseSpaceId = 2888
            },
        };
        var storedBoxes =
            _service.StoredBoxService.ReadList(
                x => boxes.Select(s => s.Id).Contains(x.Id)
            ).ToList();


问:
Looping through Pagination Promises
I'm fetching from an API that returns paginated results with a link to the next page, and when I receive that response, I'd like to get the remaining pages. I am trying to loop through, but I think I have an issue with promises.

The API returns:
{page: 1, pages: 79, per_page: 100, items: 7806, urls: {next: "https://api..com/artists//releases?page=2&per_page=100"}}

My solution so far:

```<code>const getPaginatedResults = (id) => {

    fetch(`/getArtistReleases`, {
      method: "POST",
      headers: {
        Accept: "application/json",
        "Content-Type": "application/json",
      },
      body: JSON.stringify({id}),
    })
    .then((res) => res.json())
    .then((data) => {

      let nextPaginationUrl = data.data.pagination.urls.next
      let numPages = data.data.pagination.pages

      for (let i = 0; i < numPages; i++){

        fetch(paginationUrl)
        .then((res) => res.json())
        .then((data) => {
          paginationUrl = data.pagination.urls.next
        })
      }
    })
    .catch((err) => console.log(err));
  }
</code>```

Which keeps returning only page 2, not 2,3,4,5,6,7 etc. I am guessing it's an issue with the promises, which I am a bit fuzzy on how they work, so if anyone can point out what I'm missing here, much appreciated!

Thank you!

Title: Looping through Pagination Promises

Body:
I'm fetching from an API that returns paginated results with a link to the next page, and when I receive that response, I'd like to get the remaining pages. I am trying to loop through, but I think I have an issue with promises.

The API returns:
{page: 1, pages: 79, per_page: 100, items: 7806, urls: {next: "https://api..com/artists//releases?page=2&per_page=100"}}

My solution so far:

const getPaginatedResults = (id) => {

    fetch(`/getArtistReleases`, {
      method: "POST",
      headers: {
        Accept: "application/json",
        "Content-Type": "application/json",
      },
      body: JSON.stringify({id}),
    })
    .then((res) => res.json())
    .then((data) => {

      let nextPaginationUrl = data.data.pagination.urls.next
      let numPages = data.data.pagination.pages

      for (let i = 0; i < numPages; i++){

        fetch(paginationUrl)
        .then((res) => res.json())
        .then((data) => {
          paginationUrl = data.pagination.urls.next
        })
      }
    })
    .catch((err) => console.log(err));
  }

Which keeps returning only page 2, not 2,3,4,5,6,7 etc. I am guessing it's an issue with the promises, which I am a bit fuzzy on how they work, so if anyone can point out what I'm missing here, much appreciated!

Thank you!


问:
How can I solve this problem? ([nodemon] Internal watch failed: ELOOP: too many symbolic links encountered)
While developing nodes using nodemon, I checked the following problems.

[nodemon] Internal watch failed: ELOOP: too many symbolic links encountered, stat

I've tried several searches to solve this problem, but I haven't found the right solution yet.
If I do nodemon as usual, it works well, but I am experiencing this problem for a little special reason.

I registered a script to run nodemon in rc.local. Because I wanted to set up the server to open by automatically running nodemon when the computer boots.

rc.local is working well. I checked the status, and it was confirmed as below.
`

```<code>$ sudo systemctl status rc-local.service

● rc-local.service - /etc/rc.local Compatibility
     Loaded: loaded (/lib/systemd/system/rc-local.service; enabled; vendor preset: enabled)
    Drop-In: /usr/lib/systemd/system/rc-local.service.d
             └─debian.conf
     Active: active (running)
       Docs: man:systemd-rc-local-generator(8)
    Process: - ExecStart=/etc/rc.local start (code=exited, status=0/SUCCESS)
      Tasks: - (limit: -)
     Memory: -
        CPU: -
     CGroup: /system.slice/rc-local.service
             ├─**** /bin/bash run_server.sh
             ├─**** node /usr/local/bin/nodemon app.js
             └─**** /usr/bin/node app.js
</code>```

`
I checked the log as below after this attempt.

rc.local[****]: [nodemon] Internal watch failed: ELOOP: too many symbolic links encountered, stat '/run/udev/watch/*'

If anyone has experienced a similar phenomenon to me, could you tell me the solution?

My node and nodemon versions are as follows:

$ node -v v12.22.12, $ nodemon -v2.0.20

I changed the nodemon to node and did the same thing, and it was working exactly!

But I don't know why the server will suddenly stop working.

Therefore, I would like to change this to nodemon.

Body:
While developing nodes using nodemon, I checked the following problems.

[nodemon] Internal watch failed: ELOOP: too many symbolic links encountered, stat

I've tried several searches to solve this problem, but I haven't found the right solution yet.
If I do nodemon as usual, it works well, but I am experiencing this problem for a little special reason.

I registered a script to run nodemon in rc.local. Because I wanted to set up the server to open by automatically running nodemon when the computer boots.

rc.local is working well. I checked the status, and it was confirmed as below.
`

$ sudo systemctl status rc-local.service

● rc-local.service - /etc/rc.local Compatibility
     Loaded: loaded (/lib/systemd/system/rc-local.service; enabled; vendor preset: enabled)
    Drop-In: /usr/lib/systemd/system/rc-local.service.d
             └─debian.conf
     Active: active (running)
       Docs: man:systemd-rc-local-generator(8)
    Process: - ExecStart=/etc/rc.local start (code=exited, status=0/SUCCESS)
      Tasks: - (limit: -)
     Memory: -
        CPU: -
     CGroup: /system.slice/rc-local.service
             ├─**** /bin/bash run_server.sh
             ├─**** node /usr/local/bin/nodemon app.js
             └─**** /usr/bin/node app.js

`
I checked the log as below after this attempt.

rc.local[****]: [nodemon] Internal watch failed: ELOOP: too many symbolic links encountered, stat '/run/udev/watch/*'

If anyone has experienced a similar phenomenon to me, could you tell me the solution?

My node and nodemon versions are as follows:

$ node -v v12.22.12, $ nodemon -v2.0.20

I changed the nodemon to node and did the same thing, and it was working exactly!

But I don't know why the server will suddenly stop working.

Therefore, I would like to change this to nodemon.


问:
How can i stop ALT+F4 closing C# Console app?
I need to cancel closing with ALT+F4, CTRL+C, CTRL+Break.</p>
```<code>I canceled CTRL+C and CTRL + break using
</code>```
```<code>Console.CancelKeyPress += delegate (object? sender, ConsoleCancelEventArgs e) {
            e.Cancel = true;

        };
</code>```
```<code>but my program still closing after ALT+F4
 How can i fix that?
</code>```

Body:
I need to cancel closing with ALT+F4, CTRL+C, CTRL+Break.

I canceled CTRL+C and CTRL + break using

Console.CancelKeyPress += delegate (object? sender, ConsoleCancelEventArgs e) {
            e.Cancel = true;

        };

but my program still closing after ALT+F4
 How can i fix that?


问:
Launch multiple versions of app in Play Store for A/B testing?
Is it possible to launch an App with two similar versions, one having only a small difference in design for example, and let 50% of the people that download the app get one version and the other half get the other version?

Then you could compare which of these versions perform better and assign that design feature to all versions


问:
how to print numbers in ARMv8
I have the following ARMv8 code for a program that prints to stdout a count of how many lines, words, and characters it has read from a given input file:

```<code>            .section        .data
lLineCount:     .quad   0
lWordCount:     .quad   0
lCharCount:     .quad   0
iInWord:        .quad   0

        .section        .text
        .global        main

main:
        stp     x29, x30, [sp, -16]!
        mov     x29, sp
        adrp    x0, lLineCount
        add     x0, x0, :lo12:lLineCount
        ldr     x1, [x0]
        ldr     x0, [sp, 16]
        bl      getchar
        cmp     x0, #-1
        b.eq    .L2
        adrp    x0, lCharCount
        add     x0, x0, :lo12:lCharCount
        ldr     x1, [x0]
        add     x1, x1, 1
        str     x1, [x0]
        adrp    x0, iInWord
        add     x0, x0, :lo12:iInWord
        ldr     x1, [x0]
        cmp     x1, 0
        b.ne    .L3
        adrp    x0, lWordCount
        add     x0, x0, :lo12:lWordCount
        ldr     x1, [x0]
        add     x1, x1, 1
        str     x1, [x0]
        mov     x0, 0
        str     x0, [x0]
        b       .L4

.L3:
        adrp    x0, lWordCount
        add     x0, x0, :lo12:lWordCount
        ldr     x1, [x0]
        add     x1, x1, 1
        str     x1, [x0]
        mov     x0, 0
        str     x0, [x0]

.L4:
        adrp    x0, lLineCount
        add     x0, x0, :lo12:lLineCount
        ldr     x1, [x0]
        add     x1, x1, 1
        str     x1, [x0]
        b       .L1

.L2:
        adrp    x0, lLineCount
        add     x0, x0, :lo12:lLineCount
        ldr     x1, [x0]
        ldr     x0, [sp, 16]
        bl      printf
        mov     x0, 0
        ldp     x29, x30, [sp], 16
        ret

.L1:
        adrp    x0, lLineCount
        add     x0, x0, :lo12:lLineCount
        ldr     x1, [x0]
        ldr     x0, [sp, 16]
        bl      getchar
        cmp     x0, #-1
        b.ne    .L3
</code>```

How can I get it to print out the values of lLineCount, lWordCount, lCharCount? How do I print such values in ARMv8, and where would I put said print command? At the moment, when I am testing this program, nothing is being printed to stdout.

Your help is much appreciated as I am new to ARM and am still learning.

Title: how to print numbers in ARMv8

Body:
I have the following ARMv8 code for a program that prints to stdout a count of how many lines, words, and characters it has read from a given input file:

            .section        .data
lLineCount:     .quad   0
lWordCount:     .quad   0
lCharCount:     .quad   0
iInWord:        .quad   0

        .section        .text
        .global        main

main:
        stp     x29, x30, [sp, -16]!
        mov     x29, sp
        adrp    x0, lLineCount
        add     x0, x0, :lo12:lLineCount
        ldr     x1, [x0]
        ldr     x0, [sp, 16]
        bl      getchar
        cmp     x0, #-1
        b.eq    .L2
        adrp    x0, lCharCount
        add     x0, x0, :lo12:lCharCount
        ldr     x1, [x0]
        add     x1, x1, 1
        str     x1, [x0]
        adrp    x0, iInWord
        add     x0, x0, :lo12:iInWord
        ldr     x1, [x0]
        cmp     x1, 0
        b.ne    .L3
        adrp    x0, lWordCount
        add     x0, x0, :lo12:lWordCount
        ldr     x1, [x0]
        add     x1, x1, 1
        str     x1, [x0]
        mov     x0, 0
        str     x0, [x0]
        b       .L4

.L3:
        adrp    x0, lWordCount
        add     x0, x0, :lo12:lWordCount
        ldr     x1, [x0]
        add     x1, x1, 1
        str     x1, [x0]
        mov     x0, 0
        str     x0, [x0]

.L4:
        adrp    x0, lLineCount
        add     x0, x0, :lo12:lLineCount
        ldr     x1, [x0]
        add     x1, x1, 1
        str     x1, [x0]
        b       .L1

.L2:
        adrp    x0, lLineCount
        add     x0, x0, :lo12:lLineCount
        ldr     x1, [x0]
        ldr     x0, [sp, 16]
        bl      printf
        mov     x0, 0
        ldp     x29, x30, [sp], 16
        ret

.L1:
        adrp    x0, lLineCount
        add     x0, x0, :lo12:lLineCount
        ldr     x1, [x0]
        ldr     x0, [sp, 16]
        bl      getchar
        cmp     x0, #-1
        b.ne    .L3

How can I get it to print out the values of lLineCount, lWordCount, lCharCount? How do I print such values in ARMv8, and where would I put said print command? At the moment, when I am testing this program, nothing is being printed to stdout.

Your help is much appreciated as I am new to ARM and am still learning.


问:
Flyway Community: Does "Undo" migration filenames existing at all in "locations", cause "Unrecognized migration name format" error? Unhelpful stderr
I have a pretty simple question.  On my Flyway Community repo, if I have any "Undo Migrations" (U1.1__description1undo.h2.sql, for example) example files simply existing at all in my "locations" folder, will that cause Flyway to fail will errors like "Invalid SQL filenames found" and "Unrecognised migration name format"?

I'm not wanting to even run "flyway undo" here, I'm talking about simply having "U" example files sitting around in my application folder, while I try to do things like "flyway info", "flyway validate", and "flyway migrate".

I have flyway.validateMigrationNaming=true in this circumstance.

That seems like a very wasted opportunity for flyway community edition to A) print a helpful error message "'U' Migrations are only supported in Flyway Teams".  Or for Flyway Community, on its own, to simply have a setting that B) allows it to choose to ignore "U" files altogether, or C) print out a warning and not fail since its Community Edition, and that's a paid feature.

Either way, the Flyway Community Edition command-line user experience for this is unideal and the current behavior takes the most simple concept (having a file that starts with "U" in the name) and prints out weird, uninterpretable error messages to be printed out.

Example log:
`

```<code>...
DEBUG: Validating V1.0__description0.h2.sql
DEBUG: Validating U1.1__description1undo.h2.sql
DEBUG: Validating V1.1__description1.h2.sql
DEBUG: Validating V1.2__description2.h2.sql
ERROR: Unexpected error
org.flywaydb.core.api.FlywayException: Invalid SQL filenames found:
Unrecognised migration name format: U1.1__description1undo.h2.sql
    at org.flywaydb.core.internal.resource.ResourceNameValidator.validateSQLMigrationNaming(ResourceNameValidator.java:59)
    at org.flywaydb.core.FlywayExecutor.execute(FlywayExecutor.java:144)
    at org.flywaydb.core.Flyway.info(Flyway.java:193)
    at org.flywaydb.commandline.Main.main(Main.java:179)
</code>```

`

I expected to be able to have example "U1.1__description1undo.h2.sql" files sit around in my Flyway Community DB migration folder (not being used, just having them exist), without esoteric and weird error messages being triggered.

I'm not trying to use the command "Flyway Undo" (which is a Flyway Teams feature), nor do I want to in this circumstance.  I'm just wanting to have example "U" file prepped & ready so that when & if we try out Flyway Teams, we're ready to try out some of the more advanced paid flyway functionality.

Body:
I have a pretty simple question.  On my Flyway Community repo, if I have any "Undo Migrations" (U1.1__description1undo.h2.sql, for example) example files simply existing at all in my "locations" folder, will that cause Flyway to fail will errors like "Invalid SQL filenames found" and "Unrecognised migration name format"?

I'm not wanting to even run "flyway undo" here, I'm talking about simply having "U" example files sitting around in my application folder, while I try to do things like "flyway info", "flyway validate", and "flyway migrate".

I have flyway.validateMigrationNaming=true in this circumstance.

That seems like a very wasted opportunity for flyway community edition to A) print a helpful error message "'U' Migrations are only supported in Flyway Teams".  Or for Flyway Community, on its own, to simply have a setting that B) allows it to choose to ignore "U" files altogether, or C) print out a warning and not fail since its Community Edition, and that's a paid feature.

Either way, the Flyway Community Edition command-line user experience for this is unideal and the current behavior takes the most simple concept (having a file that starts with "U" in the name) and prints out weird, uninterpretable error messages to be printed out.

Example log:
`

...
DEBUG: Validating V1.0__description0.h2.sql
DEBUG: Validating U1.1__description1undo.h2.sql
DEBUG: Validating V1.1__description1.h2.sql
DEBUG: Validating V1.2__description2.h2.sql
ERROR: Unexpected error
org.flywaydb.core.api.FlywayException: Invalid SQL filenames found:
Unrecognised migration name format: U1.1__description1undo.h2.sql
    at org.flywaydb.core.internal.resource.ResourceNameValidator.validateSQLMigrationNaming(ResourceNameValidator.java:59)
    at org.flywaydb.core.FlywayExecutor.execute(FlywayExecutor.java:144)
    at org.flywaydb.core.Flyway.info(Flyway.java:193)
    at org.flywaydb.commandline.Main.main(Main.java:179)

`

I expected to be able to have example "U1.1__description1undo.h2.sql" files sit around in my Flyway Community DB migration folder (not being used, just having them exist), without esoteric and weird error messages being triggered.

I'm not trying to use the command "Flyway Undo" (which is a Flyway Teams feature), nor do I want to in this circumstance.  I'm just wanting to have example "U" file prepped & ready so that when & if we try out Flyway Teams, we're ready to try out some of the more advanced paid flyway functionality.


问:
Node application is not exporting tracings to Jaeger monitor page
i'm implementing tracings in a node (NestJS) application and i'm using opentelemetry and jaeger as my tracing stack. I'm trying to export my application tracing to jaeger "monitor" page. Already configured otel-collector, jaeger, but i still can not see metrics in this "monitor" page.

Here is my tracing code:

```<code>import * as process from 'process';
import * as opentelemetry from '@opentelemetry/sdk-node';

import { Resource } from '@opentelemetry/resources';
import { SemanticResourceAttributes } from '@opentelemetry/semantic-conventions';
import { getNodeAutoInstrumentations } from '@opentelemetry/auto-instrumentations-node';
import { SimpleSpanProcessor } from '@opentelemetry/sdk-trace-base';
import { OTLPTraceExporter } from '@opentelemetry/exporter-trace-otlp-http';
import { JaegerExporter } from '@opentelemetry/exporter-jaeger';

export const initTracing = async (): Promise<void> => {
  const oltpExporter = new OTLPTraceExporter({
    url: 'http://localhost:4317',
  });

  const jaegerExporter = new JaegerExporter({
    endpoint: 'http://jaeger:14268/api/traces',
    maxPacketSize: 65000,
  });

  const openTelemetrySDK = new opentelemetry.NodeSDK({
    resource: new Resource({
      [SemanticResourceAttributes.SERVICE_NAME]: 'nestjs-jaeger-example',
    }),
    instrumentations: [
      getNodeAutoInstrumentations({
        '@opentelemetry/instrumentation-fs': { enabled: false },
      }),
    ],
    spanProcessor: new SimpleSpanProcessor(jaegerExporter),
    traceExporter: oltpExporter,
    autoDetectResources: true,
  });

  try {
    await openTelemetrySDK.start();
    console.log('Tracing initialized');
  } catch (error) {
    console.log('Error initializing tracing', error);
  }

  process.on('SIGTERM', () => {
    openTelemetrySDK
      .shutdown()
      .then(() => console.log('Tracing terminated'))
      .catch((error) => console.log('Error terminating tracing', error))
      .finally(() => process.exit(0));
  });
};

</code>```

I believe this problem is not a configuration problem because i tested the example application that Jaeger's github shows in python and it worked!

Here is the python code that worked:

```<code>#!/usr/bin/env python3

from opentelemetry import trace
from opentelemetry.trace import SpanKind
from opentelemetry.sdk.trace import TracerProvider
from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import OTLPSpanExporter
from opentelemetry.sdk.trace.export import BatchSpanProcessor
from opentelemetry.sdk.resources import Resource

resource = Resource(attributes={
    "service.name": "my_service"
})

trace.set_tracer_provider(TracerProvider(resource=resource))

otlp_exporter = OTLPSpanExporter(endpoint="http://localhost:4317", insecure=True)

trace.get_tracer_provider().add_span_processor(
    BatchSpanProcessor(otlp_exporter)
)

tracer = trace.get_tracer(__name__)

with tracer.start_as_current_span("foo", kind=SpanKind.SERVER):
    with tracer.start_as_current_span("bar", kind=SpanKind.SERVER):
        with tracer.start_as_current_span("baz", kind=SpanKind.SERVER):
            print("Hello world from OpenTelemetry Python!")
</code>```

Body:
i'm implementing tracings in a node (NestJS) application and i'm using opentelemetry and jaeger as my tracing stack. I'm trying to export my application tracing to jaeger "monitor" page. Already configured otel-collector, jaeger, but i still can not see metrics in this "monitor" page.

Here is my tracing code:

import * as process from 'process';
import * as opentelemetry from '@opentelemetry/sdk-node';

import { Resource } from '@opentelemetry/resources';
import { SemanticResourceAttributes } from '@opentelemetry/semantic-conventions';
import { getNodeAutoInstrumentations } from '@opentelemetry/auto-instrumentations-node';
import { SimpleSpanProcessor } from '@opentelemetry/sdk-trace-base';
import { OTLPTraceExporter } from '@opentelemetry/exporter-trace-otlp-http';
import { JaegerExporter } from '@opentelemetry/exporter-jaeger';

export const initTracing = async (): Promise<void> => {
  const oltpExporter = new OTLPTraceExporter({
    url: 'http://localhost:4317',
  });

  const jaegerExporter = new JaegerExporter({
    endpoint: 'http://jaeger:14268/api/traces',
    maxPacketSize: 65000,
  });

  const openTelemetrySDK = new opentelemetry.NodeSDK({
    resource: new Resource({
      [SemanticResourceAttributes.SERVICE_NAME]: 'nestjs-jaeger-example',
    }),
    instrumentations: [
      getNodeAutoInstrumentations({
        '@opentelemetry/instrumentation-fs': { enabled: false },
      }),
    ],
    spanProcessor: new SimpleSpanProcessor(jaegerExporter),
    traceExporter: oltpExporter,
    autoDetectResources: true,
  });

  try {
    await openTelemetrySDK.start();
    console.log('Tracing initialized');
  } catch (error) {
    console.log('Error initializing tracing', error);
  }

  process.on('SIGTERM', () => {
    openTelemetrySDK
      .shutdown()
      .then(() => console.log('Tracing terminated'))
      .catch((error) => console.log('Error terminating tracing', error))
      .finally(() => process.exit(0));
  });
};

I believe this problem is not a configuration problem because i tested the example application that Jaeger's github shows in python and it worked!

Here is the python code that worked:

#!/usr/bin/env python3

from opentelemetry import trace
from opentelemetry.trace import SpanKind
from opentelemetry.sdk.trace import TracerProvider
from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import OTLPSpanExporter
from opentelemetry.sdk.trace.export import BatchSpanProcessor
from opentelemetry.sdk.resources import Resource

resource = Resource(attributes={
    "service.name": "my_service"
})

trace.set_tracer_provider(TracerProvider(resource=resource))

otlp_exporter = OTLPSpanExporter(endpoint="http://localhost:4317", insecure=True)

trace.get_tracer_provider().add_span_processor(
    BatchSpanProcessor(otlp_exporter)
)

tracer = trace.get_tracer(__name__)

with tracer.start_as_current_span("foo", kind=SpanKind.SERVER):
    with tracer.start_as_current_span("bar", kind=SpanKind.SERVER):
        with tracer.start_as_current_span("baz", kind=SpanKind.SERVER):
            print("Hello world from OpenTelemetry Python!")


问:
Stored procedure that returns a result
I'm trying to create a procedure that returns a value from a select statement

```<code>REPLACE PROCEDURE getOwnerName
    (IN empid varchar(256),
     OUT ownerName varchar(256))
BEGIN
    SELECT
        table1.Email_Primary_Work
    INTO
        ownerName
    FROM
        table 1
    WHERE
        table1.Employee_ID_T = empid;

    CALL getOwnerName(empid, ownerName);
END;

SELECT getOwnerName(WD.empid, ownerName)
FROM table2 WD;
</code>```

but I'm getting this error when I try to run the select statement

Executed as Single statement.

Failed [3706 : 42000] Syntax error: Data Type "empid" does not match a defined type name.

They have the exact same type. Can you please help?

Title: Stored procedure that returns a result

Body:
I'm trying to create a procedure that returns a value from a select statement

REPLACE PROCEDURE getOwnerName
    (IN empid varchar(256),
     OUT ownerName varchar(256))
BEGIN
    SELECT
        table1.Email_Primary_Work
    INTO
        ownerName
    FROM
        table 1
    WHERE
        table1.Employee_ID_T = empid;

    CALL getOwnerName(empid, ownerName);
END;

SELECT getOwnerName(WD.empid, ownerName)
FROM table2 WD;

but I'm getting this error when I try to run the select statement

Executed as Single statement.

Failed [3706 : 42000] Syntax error: Data Type "empid" does not match a defined type name.

They have the exact same type. Can you please help?


问:
App Clip Banner in lower version of iOS devices
Currently, I am maintaining an App Clip. Due to the application size limit and the features that we have to put into the App Clip, we had decided to go with iOS 16 + which allows maximum size limitation of 15 MB.

But the problem is for devices with lower version, when they are scanning NFC tag or QR code, instead of seeing the website to popup, they are seeing the App Clip Banner with notification to update the iOS version.

Is there anyway for in lower versions of iOS, let the users seeing the website, not the App Clip popup?


问:
make/Makefile error: fails executing Remove-Item on PowerShell, Windows even with -ErrorAction Ignore
I posted this problem because I had trouble finding anything about it online. I'm on Windows 10 and I'm new to make. Using make to run Remove-Item on PowerShell (both on a normal terminal and Visual Studio's Developer PowerShell console) fails to ignore errors, basically non-existent files to be removed.

Here is the portion of my Makefile concerned and that doesn't run:

```<code>REMOVE_COMMAND = Remove-Item -ErrorAction Ignore

clean:
    $(REMOVE_COMMAND) *.o
</code>```

Here is the error when running make clean:

```<code>Remove-Item -ErrorAction Ignore *.o
process_begin: CreateProcess(NULL, Remove-Item -ErrorAction Ignore *.o, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [Makefile:4: clean] Error 2
</code>```

How can I make make run Remove-Item to delete files and ignore non-existent ones?

What's weird is that running Remove-Item -ErrorAction Ignore *.o as a standalone command on PowerShell runs fine (even without -ErrorAction Ignore). I don't believe that the text substitution has anything to do that causes the error since I've tried running make both substituting the command and not. I'm substituting the command because I will be running this Makefile on Linux as well (and so will use rm for that case instead).

Body:
I posted this problem because I had trouble finding anything about it online. I'm on Windows 10 and I'm new to make. Using make to run Remove-Item on PowerShell (both on a normal terminal and Visual Studio's Developer PowerShell console) fails to ignore errors, basically non-existent files to be removed.

Here is the portion of my Makefile concerned and that doesn't run:

REMOVE_COMMAND = Remove-Item -ErrorAction Ignore

clean:
    $(REMOVE_COMMAND) *.o

Here is the error when running make clean:

Remove-Item -ErrorAction Ignore *.o
process_begin: CreateProcess(NULL, Remove-Item -ErrorAction Ignore *.o, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [Makefile:4: clean] Error 2

How can I make make run Remove-Item to delete files and ignore non-existent ones?

What's weird is that running Remove-Item -ErrorAction Ignore *.o as a standalone command on PowerShell runs fine (even without -ErrorAction Ignore). I don't believe that the text substitution has anything to do that causes the error since I've tried running make both substituting the command and not. I'm substituting the command because I will be running this Makefile on Linux as well (and so will use rm for that case instead).


问:
IntelliJ IDEA "Cannot resolve symbol" errors
I've tried all the usual methods of solving these errors such as checking the JDK used, to add a JPA facet with Hibernate as the default JPA provider, invalidate the caches, etc,. But none of them seem to be clearing the errors.

The dependencies I'm using are: Spring Web, Lombok, Spring Data JPA and MySQL Driver.


问:
Google Apps Script "TypeError" when Parsing JSON to Google Sheets
After two eight-hour days of Googling and trying various bits of code, I'm here, asking for your help.

Can anyone please help me understand what this error means?

TypeError: Cannot read properties of undefined (reading 'forEach')

Below is the Google Apps Script I'm running which never returns any data to my Google Sheet, only the TypeError above.

My end goal is so extremely simple: I need to take the data returned by the API and simply parse it into cells in a Google Sheet. I'm certain that the API is responsive as I've been able to see a "200" code (which indicates success) in the log as well as seeing the actual data I need to parse in its raw format in the log (when I rewrite the code to show the data in the log). The most I can tell is that there is something wrong with the forEach loop.

```<code>function myFunction() {
  var url = "https://example.com";
  var params = {
    "headers": {
      "Authorization": 'Basic ' + Utilities.base64Encode(Username + ':' + Password),
      "Act-Database-Name": "Sample"
    }
  };

  var response = UrlFetchApp.fetch(url, params);
  var code = response.getResponseCode();
  var token = response.getContentText();

  Logger.log(code);
  Logger.log(token);

  var params2 = {
    "headers": { "Authorization": 'Bearer ' + token }
  };

  try {
    // call the API
    var url2 = "https://example.com/api/opportunities";
    var jsondata = UrlFetchApp.fetch(url2, params2);

    var code2 = jsondata.getResponseCode();
    Logger.log(code2);

    var data = jsondata.getContentText();
    var json = JSON.parse(data);

    // get data array
    var arrayData = json['opportunities']; // replace 'data' with the name of your 1st-level array

    // blank array to hold the data for Sheet
    var arrayProperties = [];

    // Add the arrayProperties to the array
    arrayData.forEach(function (el) {

      arrayProperties.push([el.status,
      el.opportunityName,
      el.contact,
      el.probabilityofClose,
      el.weightedTotal,
      el.total,
      el.editDate,
      el.estimatedCloseDate,
      el.actualCloseDate,
      el.recordManager,
      el.leadTime,
      el.accessLevel,
      el.associatedWith,
      el.company,
      el.competitor,
      el.createDate,
      el.daysinStage,
      el.daysOpen,
      el.grossMargin,
      el.importDate,
      el.lastEditedBy,
      el.openDate,
      el.opportunityField2,
      el.opportunityField3,
      el.opportunityField4,
      el.opportunityField5,
      el.opportunityField6,
      el.opportunityField7,
      el.opportunityField8,
      el.private,
      el.process,
      el.product,
      el.reason,
      el.recordCreator,
      el.referredBy,
      el.sourceid,
      el.stage,
      el.stageStartDate]
      );

    });

    // select the output sheet
    var ss = SpreadsheetApp.getActiveSpreadsheet();
    var sheet = ss.getSheetByName('Current');        // replace 'Sheet1' with the name of your Sheet

    // calculate the number of rows and columns needed
    var numRows = arrayProperties.length;
    var numCols = arrayProperties[0].length;

    // output the numbers to the sheet
    sheet.getRange(2, 1, numRows, numCols).setValues(arrayProperties.reverse())

  }
  catch (error) {
    // deal with any errors
    Logger.log(error);
  };
}
</code>```

According to the API documentation, the data should look like this:

```<code>[
  {
    "id": "00000000-0000-0000-0000-000000000000",
    "name": "string",
    "actualCloseDate": "2022-12-07T18:10:03.367Z",
    "companies": [
      {
        "id": "00000000-0000-0000-0000-000000000000",
        "name": "string"
      }
    ],
    "competitor": "string",
    "contactNames": "string",
    "contacts": [
      {
        "id": "00000000-0000-0000-0000-000000000000",
        "displayName": "string",
        "company": "string"
      }
    ],
    "creator": "string",
    "daysOpen": 0,
    "daysInStage": 0,
    "estimatedCloseDate": "2022-12-07T18:10:03.367Z",
    "stageStartDate": "2022-12-07T18:10:03.367Z",
    "grossMargin": 0,
    "groups": [
      {
        "id": "00000000-0000-0000-0000-000000000000",
        "name": "string"
      }
    ],
    "isPrivate": true,
    "manager": "string",
    "openDate": "2022-12-07T18:10:03.367Z",
    "probability": 0,
    "productTotal": 0,
    "reason": "string",
    "source": "string",
    "sourceId": "00000000-0000-0000-0000-000000000000",
    "stage": {
      "id": "00000000-0000-0000-0000-000000000000",
      "name": "string",
      "description": "string",
      "probability": 0,
      "number": 0,
      "process": {
        "id": "00000000-0000-0000-0000-000000000000",
        "name": "string",
        "description": "string",
        "status": "None",
        "stagesCount": 0,
        "stages": [
          {}
        ]
      }
    },
    "status": "Open",
    "importDate": "2022-12-07T18:10:03.367Z",
    "totalPerCompany": 0,
    "totalPerContact": 0,
    "totalPerGroup": 0,
    "weightedTotal": 0,
    "quickbooksInvoiceId": "string",
    "relatedEntitiesResolver": true,
    "recordManagerID": "00000000-0000-0000-0000-000000000000",
    "customFields": {},
    "created": "2022-12-07T18:10:03.367Z",
    "edited": "2022-12-07T18:10:03.367Z",
    "editedBy": "string",
    "recordOwner": "string",
    "recordManager": "string"
  }
]
</code>```

The API documentation also shows a "Model" that looks like this:

```<code>Inline Model [
act.web.api.models.Opportunities.Opportunity
]
act.web.api.models.Opportunities.Opportunity {
id (string, optional): A unique identifier that represents a potential piece of business. ,
name (string, optional): The name of an opportunity. ,
actualCloseDate (string, optional): The date that the opportunity as closed. ,
companies (Array[act.web.api.models.Companies.EmbeddedCompany], optional): List of companies that are associated to this opportunity entity. ,
competitor (string, optional): Gets the name of the competitor for this opportunity. ,
contactNames (string, optional): The names of the contacts associated with this opportunity. ,
contacts (Array[act.web.api.models.Contacts.EmbeddedContact], optional): List of contacts that are associated to this opportunity entity. ,
creator (string, optional): The name of the creator of this opportunity. ,
daysOpen (integer, optional): The number of days this opportunity has been opened. ,
daysInStage (integer, optional): the number of days this opportunity has been in a given stage. ,
estimatedCloseDate (string, optional): The date the opportunity is expected to be closed. ,
stageStartDate (string, optional): The date the opportunity stage started. ,
grossMargin (number, optional): Represents the net sales less the cost of goods and services sold. ,
groups (Array[act.web.api.models.Groups.EmbeddedGroup], optional): List of groups that are associated to this opportunity entity. ,
isPrivate (boolean, optional): Indicates whether this opportunity is private ,
manager (string, optional): The name of the record manager of this opportunity. ,
openDate (string, optional): The date the opportunity was opened. ,
probability (integer, optional): The likelihood this opportunity will will be won by the close date. ,
productTotal (number, optional): The total cost of the product or services. ,
reason (string, optional): Describes why the opportunity status changed. ,
source (string, optional): Describes the source of the opportunity. ,
sourceId (string, optional): The external source id for the opportunity ,
stage (act.web.api.models.Opportunities.Stage, optional): The stage of the opportunity. ,
status (string, optional): This displays the status of the opportunity (Open, Won, Lost, or inactive). = ['Open', 'Won', 'Lost', 'Inactive'],
importDate (string, optional): This readonly property displays the date that the opportunity was imported into the system. ,
totalPerCompany (number, optional): The average total per associated company. ,
totalPerContact (number, optional): The average total per associated contact. ,
totalPerGroup (number, optional): The average total per associated group. ,
weightedTotal (number, optional): The weight of the product. ,
quickbooksInvoiceId (string, optional): Quickbooks external Id to match record with quickbooks contact ,
relatedEntitiesResolver (boolean, optional): If true: prevents related entities from serializing. ,
recordManagerID (string, optional): The record manager. ,
customFields (object, optional),
created (string, optional),
edited (string, optional),
editedBy (string, optional),
recordOwner (string, optional),
recordManager (string, optional)
}
act.web.api.models.Companies.EmbeddedCompany {
id (string, optional): Gets a unique identifier (id) for a given company. ,
name (string, optional): Gets the name of the company.
}
act.web.api.models.Contacts.EmbeddedContact {
id (string, optional): ,
displayName (string, optional, read only): ,
company (string, optional):
}
act.web.api.models.Groups.EmbeddedGroup {
id (string, optional): Gets a unique identifier (id) for a given group. ,
name (string, optional): Gets the name of the group.
}
act.web.api.models.Opportunities.Stage {
id (string, optional): Gets the unique identifier of the stage. ,
name (string, optional): Gets/Sets the name of the stage. ,
description (string, optional): Gets/Sets the description of the stage. ,
probability (integer, optional): Gets/Sets the probability of the stage. ,
number (integer, optional): The order of the stage progresses throw the process lifecycle. ,
process (act.web.api.models.Opportunities.Process, optional): Represents the current process for a given opportunity
}
act.web.api.models.Opportunities.Process {
id (string, optional): Gets the unique identifier of the process. ,
name (string, optional): The name of the process. ,
description (string, optional): The description of the process. ,
status (string, optional): The description of the process. = ['None', 'Active', 'Inactive'],
stagesCount (integer, optional): Count of stages of current process ,
stages (Array[act.web.api.models.Opportunities.Stage], optional): Customized stages for the new process
}
</code>```

Thank you very much in advance ❤.

Body:
After two eight-hour days of Googling and trying various bits of code, I'm here, asking for your help.

Can anyone please help me understand what this error means?

TypeError: Cannot read properties of undefined (reading 'forEach')

Below is the Google Apps Script I'm running which never returns any data to my Google Sheet, only the TypeError above.

My end goal is so extremely simple: I need to take the data returned by the API and simply parse it into cells in a Google Sheet. I'm certain that the API is responsive as I've been able to see a "200" code (which indicates success) in the log as well as seeing the actual data I need to parse in its raw format in the log (when I rewrite the code to show the data in the log). The most I can tell is that there is something wrong with the forEach loop.

function myFunction() {
  var url = "https://example.com";
  var params = {
    "headers": {
      "Authorization": 'Basic ' + Utilities.base64Encode(Username + ':' + Password),
      "Act-Database-Name": "Sample"
    }
  };

  var response = UrlFetchApp.fetch(url, params);
  var code = response.getResponseCode();
  var token = response.getContentText();

  Logger.log(code);
  Logger.log(token);

  var params2 = {
    "headers": { "Authorization": 'Bearer ' + token }
  };

  try {
    // call the API
    var url2 = "https://example.com/api/opportunities";
    var jsondata = UrlFetchApp.fetch(url2, params2);

    var code2 = jsondata.getResponseCode();
    Logger.log(code2);

    var data = jsondata.getContentText();
    var json = JSON.parse(data);

    // get data array
    var arrayData = json['opportunities']; // replace 'data' with the name of your 1st-level array

    // blank array to hold the data for Sheet
    var arrayProperties = [];

    // Add the arrayProperties to the array
    arrayData.forEach(function (el) {

      arrayProperties.push([el.status,
      el.opportunityName,
      el.contact,
      el.probabilityofClose,
      el.weightedTotal,
      el.total,
      el.editDate,
      el.estimatedCloseDate,
      el.actualCloseDate,
      el.recordManager,
      el.leadTime,
      el.accessLevel,
      el.associatedWith,
      el.company,
      el.competitor,
      el.createDate,
      el.daysinStage,
      el.daysOpen,
      el.grossMargin,
      el.importDate,
      el.lastEditedBy,
      el.openDate,
      el.opportunityField2,
      el.opportunityField3,
      el.opportunityField4,
      el.opportunityField5,
      el.opportunityField6,
      el.opportunityField7,
      el.opportunityField8,
      el.private,
      el.process,
      el.product,
      el.reason,
      el.recordCreator,
      el.referredBy,
      el.sourceid,
      el.stage,
      el.stageStartDate]
      );

    });

    // select the output sheet
    var ss = SpreadsheetApp.getActiveSpreadsheet();
    var sheet = ss.getSheetByName('Current');        // replace 'Sheet1' with the name of your Sheet

    // calculate the number of rows and columns needed
    var numRows = arrayProperties.length;
    var numCols = arrayProperties[0].length;

    // output the numbers to the sheet
    sheet.getRange(2, 1, numRows, numCols).setValues(arrayProperties.reverse())

  }
  catch (error) {
    // deal with any errors
    Logger.log(error);
  };
}

According to the API documentation, the data should look like this:

[
  {
    "id": "00000000-0000-0000-0000-000000000000",
    "name": "string",
    "actualCloseDate": "2022-12-07T18:10:03.367Z",
    "companies": [
      {
        "id": "00000000-0000-0000-0000-000000000000",
        "name": "string"
      }
    ],
    "competitor": "string",
    "contactNames": "string",
    "contacts": [
      {
        "id": "00000000-0000-0000-0000-000000000000",
        "displayName": "string",
        "company": "string"
      }
    ],
    "creator": "string",
    "daysOpen": 0,
    "daysInStage": 0,
    "estimatedCloseDate": "2022-12-07T18:10:03.367Z",
    "stageStartDate": "2022-12-07T18:10:03.367Z",
    "grossMargin": 0,
    "groups": [
      {
        "id": "00000000-0000-0000-0000-000000000000",
        "name": "string"
      }
    ],
    "isPrivate": true,
    "manager": "string",
    "openDate": "2022-12-07T18:10:03.367Z",
    "probability": 0,
    "productTotal": 0,
    "reason": "string",
    "source": "string",
    "sourceId": "00000000-0000-0000-0000-000000000000",
    "stage": {
      "id": "00000000-0000-0000-0000-000000000000",
      "name": "string",
      "description": "string",
      "probability": 0,
      "number": 0,
      "process": {
        "id": "00000000-0000-0000-0000-000000000000",
        "name": "string",
        "description": "string",
        "status": "None",
        "stagesCount": 0,
        "stages": [
          {}
        ]
      }
    },
    "status": "Open",
    "importDate": "2022-12-07T18:10:03.367Z",
    "totalPerCompany": 0,
    "totalPerContact": 0,
    "totalPerGroup": 0,
    "weightedTotal": 0,
    "quickbooksInvoiceId": "string",
    "relatedEntitiesResolver": true,
    "recordManagerID": "00000000-0000-0000-0000-000000000000",
    "customFields": {},
    "created": "2022-12-07T18:10:03.367Z",
    "edited": "2022-12-07T18:10:03.367Z",
    "editedBy": "string",
    "recordOwner": "string",
    "recordManager": "string"
  }
]

The API documentation also shows a "Model" that looks like this:

Inline Model [
act.web.api.models.Opportunities.Opportunity
]
act.web.api.models.Opportunities.Opportunity {
id (string, optional): A unique identifier that represents a potential piece of business. ,
name (string, optional): The name of an opportunity. ,
actualCloseDate (string, optional): The date that the opportunity as closed. ,
companies (Array[act.web.api.models.Companies.EmbeddedCompany], optional): List of companies that are associated to this opportunity entity. ,
competitor (string, optional): Gets the name of the competitor for this opportunity. ,
contactNames (string, optional): The names of the contacts associated with this opportunity. ,
contacts (Array[act.web.api.models.Contacts.EmbeddedContact], optional): List of contacts that are associated to this opportunity entity. ,
creator (string, optional): The name of the creator of this opportunity. ,
daysOpen (integer, optional): The number of days this opportunity has been opened. ,
daysInStage (integer, optional): the number of days this opportunity has been in a given stage. ,
estimatedCloseDate (string, optional): The date the opportunity is expected to be closed. ,
stageStartDate (string, optional): The date the opportunity stage started. ,
grossMargin (number, optional): Represents the net sales less the cost of goods and services sold. ,
groups (Array[act.web.api.models.Groups.EmbeddedGroup], optional): List of groups that are associated to this opportunity entity. ,
isPrivate (boolean, optional): Indicates whether this opportunity is private ,
manager (string, optional): The name of the record manager of this opportunity. ,
openDate (string, optional): The date the opportunity was opened. ,
probability (integer, optional): The likelihood this opportunity will will be won by the close date. ,
productTotal (number, optional): The total cost of the product or services. ,
reason (string, optional): Describes why the opportunity status changed. ,
source (string, optional): Describes the source of the opportunity. ,
sourceId (string, optional): The external source id for the opportunity ,
stage (act.web.api.models.Opportunities.Stage, optional): The stage of the opportunity. ,
status (string, optional): This displays the status of the opportunity (Open, Won, Lost, or inactive). = ['Open', 'Won', 'Lost', 'Inactive'],
importDate (string, optional): This readonly property displays the date that the opportunity was imported into the system. ,
totalPerCompany (number, optional): The average total per associated company. ,
totalPerContact (number, optional): The average total per associated contact. ,
totalPerGroup (number, optional): The average total per associated group. ,
weightedTotal (number, optional): The weight of the product. ,
quickbooksInvoiceId (string, optional): Quickbooks external Id to match record with quickbooks contact ,
relatedEntitiesResolver (boolean, optional): If true: prevents related entities from serializing. ,
recordManagerID (string, optional): The record manager. ,
customFields (object, optional),
created (string, optional),
edited (string, optional),
editedBy (string, optional),
recordOwner (string, optional),
recordManager (string, optional)
}
act.web.api.models.Companies.EmbeddedCompany {
id (string, optional): Gets a unique identifier (id) for a given company. ,
name (string, optional): Gets the name of the company.
}
act.web.api.models.Contacts.EmbeddedContact {
id (string, optional): ,
displayName (string, optional, read only): ,
company (string, optional):
}
act.web.api.models.Groups.EmbeddedGroup {
id (string, optional): Gets a unique identifier (id) for a given group. ,
name (string, optional): Gets the name of the group.
}
act.web.api.models.Opportunities.Stage {
id (string, optional): Gets the unique identifier of the stage. ,
name (string, optional): Gets/Sets the name of the stage. ,
description (string, optional): Gets/Sets the description of the stage. ,
probability (integer, optional): Gets/Sets the probability of the stage. ,
number (integer, optional): The order of the stage progresses throw the process lifecycle. ,
process (act.web.api.models.Opportunities.Process, optional): Represents the current process for a given opportunity
}
act.web.api.models.Opportunities.Process {
id (string, optional): Gets the unique identifier of the process. ,
name (string, optional): The name of the process. ,
description (string, optional): The description of the process. ,
status (string, optional): The description of the process. = ['None', 'Active', 'Inactive'],
stagesCount (integer, optional): Count of stages of current process ,
stages (Array[act.web.api.models.Opportunities.Stage], optional): Customized stages for the new process
}

Thank you very much in advance ❤.